build-vm: purge tarball even with DEBUG=1

...and leave it for possible further investigation
only if debug level is 2 or higher (which is uncommon).
This commit is contained in:
Michael Shigorin 2017-08-21 21:09:32 +03:00
parent 1a272e44b2
commit 2600bc2c1d

View File

@ -41,7 +41,7 @@ convert-image: prepare-image
qemu-img convert -O "$$VM_FORMAT" \
"$(VM_RAWDISK)" "$(IMAGE_OUTPATH)"; \
rm "$(VM_RAWDISK)"; \
if [ -z "$(DEBUG)" ]; then rm "$(VM_TARBALL)"; fi; \
if [ "0$(DEBUG)" -le 1 ]; then rm "$(VM_TARBALL)"; fi; \
fi
run-image-scripts: GLOBAL_CLEANUP_PACKAGES := $(CLEANUP_PACKAGES)