Fix warning about undefined ZIP_FLAGS constant if the zip tool does not support bzip2

This commit is contained in:
Robert Knight 2011-09-05 16:17:34 +01:00
parent b8e1561155
commit c3dee80640

View file

@ -42,7 +42,11 @@ def zip_supports_bzip2(zip_tool)
end
BZIP2_AVAILABLE = zip_supports_bzip2(ZIP_TOOL)
ZIP_FLAGS = "-Z bzip2" if BZIP2_AVAILABLE
if (BZIP2_AVAILABLE)
ZIP_FLAGS = "-Z bzip2"
else
ZIP_FLAGS = ""
end
if (BZIP2_AVAILABLE)
puts "Using bzip2 compression"