build: leaving behind incomplete metadata files on cancelled builds
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
d2f4479870
commit
934901fb3e
1 changed files with 4 additions and 2 deletions
|
@ -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…
Reference in a new issue