Now only compresses the file if it exists, to avoid failures when creating .deb packages

This commit is contained in:
Sergio Costas 2015-11-07 20:18:21 +01:00
parent 8db8e8611e
commit e336bb2c2a

View file

@ -54,7 +54,8 @@ def compile_translations():
compile_translations()
try:
os.system("gzip -c data/devede.1 > data/devede.1.gz")
if os.path.isfile('data/devede.1'):
os.system("gzip -c data/devede.1 > data/devede.1.gz")
except:
pass