fix bug when appdata.pot file cannot be regenerated
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 8 Aug 2016 17:51:20 +0000 (13:51 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 8 Aug 2016 17:51:20 +0000 (13:51 -0400)
gtk2_ardour/wscript

index 398bd57248829b1d12aee7d28f96a1e53d2c7e70..e1c349fc87cebd5a5aa0608292939b3b574f8d64 100644 (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)