build: leaving behind incomplete metadata files on cancelled builds

Signed-off-by: Felix Fietkau <nbd@nbd.name>
master
Felix Fietkau 8 years ago
parent d2f4479870
commit 934901fb3e
  1. 6
      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

Loading…
Cancel
Save