diff options
-rw-r--r-- | include/scan.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/scan.mk b/include/scan.mk index 5af035972f..5bb263d713 100644 --- a/include/scan.mk +++ b/include/scan.mk @@ -40,7 +40,8 @@ define PackageDir rm -f $$@; \ }; \ echo; \ - } > $$@ || true + } > $$@.tmp + mv $$@.tmp $$@ endef $(OVERRIDELIST): @@ -76,7 +77,8 @@ $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST) print "$$(eval $$(call PackageDir," info "," dir "," pkg "))"; \ } ' < $<; \ true; \ - ) > $@ + ) > $@.tmp + mv $@.tmp $@ -include $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk |