From: Michael Büsch Date: Thu, 4 Nov 2010 12:42:37 +0000 (+0000) Subject: InstallDev: Move the "find" out of the lock critical section. X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=09f68e4a53d04a2371dd830faa0959621d63dad4;p=15.05%2Fopenwrt.git InstallDev: Move the "find" out of the lock critical section. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23858 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/include/package.mk b/include/package.mk index 712b793d0d..06f3a839c6 100644 --- a/include/package.mk +++ b/include/package.mk @@ -132,8 +132,9 @@ define Build/DefaultTargets $(call $(hook),$(TMP_DIR)/stage-$(PKG_NAME),$(TMP_DIR)/stage-$(PKG_NAME)/host)$(sep)\ ) if [ -d $(TMP_DIR)/stage-$(PKG_NAME) ]; then \ + (cd $(TMP_DIR)/stage-$(PKG_NAME); find ./ > $(TMP_DIR)/stage-$(PKG_NAME).files); \ $(call locked, \ - (cd $(TMP_DIR)/stage-$(PKG_NAME); find ./ > $(STAGING_DIR)/packages/$(STAGING_FILES_LIST)); \ + mv $(TMP_DIR)/stage-$(PKG_NAME).files $(STAGING_DIR)/packages/$(STAGING_FILES_LIST) && \ $(CP) $(TMP_DIR)/stage-$(PKG_NAME)/* $(STAGING_DIR)/; \ ,staging-dir); \ fi