13
0

fix bug when appdata.pot file cannot be regenerated

This commit is contained in:
Paul Davis 2016-08-08 13:51:20 -04:00
parent 653df3ca4f
commit f47ae6c0f9

View File

@ -865,7 +865,10 @@ def appdata_i18n_pot(bld):
adsource = os.path.join(bld.top_dir, 'gtk2_ardour',
'ardour.appdata.xml.in.in')
Logs.info('Updating ' + potfile)
subprocess.call(('itstool', '-i', itsfile, '-o', potfile, adsource))
try:
subprocess.call(('itstool', '-i', itsfile, '-o', potfile, adsource))
except:
print ('Error processing appdata pot file - ignored')
elif bld.cmd == 'clean' and os.path.exists(potfile):
Logs.info('Removing Ardour appdata pot file')
os.remove(potfile)