build: leaving behind incomplete metadata files on cancelled builds

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2016-10-02 11:40:06 +02:00
parent d2f4479870
commit 934901fb3e

View File

@ -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