build: leaving behind incomplete metadata files on cancelled builds

Signed-off-by: Felix Fietkau <nbd@nbd.name>
owl
Felix Fietkau 2016-10-02 11:40:06 +02:00
parent d2f4479870
commit 934901fb3e
1 changed files with 4 additions and 2 deletions

View File

@ -40,7 +40,8 @@ define PackageDir
rm -f $$@; \ rm -f $$@; \
}; \ }; \
echo; \ echo; \
} > $$@ || true } > $$@.tmp
mv $$@.tmp $$@
endef endef
$(OVERRIDELIST): $(OVERRIDELIST):
@ -76,7 +77,8 @@ $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST)
print "$$(eval $$(call PackageDir," info "," dir "," pkg "))"; \ print "$$(eval $$(call PackageDir," info "," dir "," pkg "))"; \
} ' < $<; \ } ' < $<; \
true; \ true; \
) > $@ ) > $@.tmp
mv $@.tmp $@
-include $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk -include $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk