Fix translation updating in build script

This commit is contained in:
Christian Dywan 2008-12-06 05:43:24 +01:00
parent d3a00cecac
commit c94258fe67

11
wscript
View file

@ -260,15 +260,16 @@ def shutdown ():
if not Params.g_options.destdir: if not Params.g_options.destdir:
# update the pixmap cache directory # update the pixmap cache directory
try: try:
uic = subprocess.Popen (['gtk-update-icon-cache', '-q', '-f', '-t', dir], uic = subprocess.Popen (['gtk-update-icon-cache',
stderr=subprocess.PIPE) '-q', '-f', '-t', dir], stderr=subprocess.PIPE)
if not uic.wait (): if not uic.wait ():
Params.pprint ('YELLOW', "Updated Gtk icon cache.") Params.pprint ('YELLOW', "Updated Gtk icon cache.")
icon_cache_updated = True icon_cache_updated = True
except: except:
Params.pprint ('RED', "Failed to update icon cache.") Params.pprint ('RED', "Failed to update icon cache.")
if not icon_cache_updated: if not icon_cache_updated:
Params.pprint ('YELLOW', "Icon cache not updated. After install, run this:") Params.pprint ('YELLOW', "Icon cache not updated. "
"After install, run this:")
Params.pprint ('YELLOW', "gtk-update-icon-cache -q -f -t %s" % dir) Params.pprint ('YELLOW', "gtk-update-icon-cache -q -f -t %s" % dir)
elif Params.g_commands['check']: elif Params.g_commands['check']:
@ -291,8 +292,8 @@ def shutdown ():
if size_new <> size_old: if size_new <> size_old:
Params.pprint ('YELLOW', "Updated po template.") Params.pprint ('YELLOW', "Updated po template.")
try: try:
intltool_update = subprocess.Popen (['intltool-update', '-r'], intltool_update = subprocess.Popen (['intltool-update',
stderr=subprocess.PIPE) '-r', '-g', APPNAME], stderr=subprocess.PIPE)
intltool_update.wait () intltool_update.wait ()
Params.pprint ('YELLOW', "Updated translations.") Params.pprint ('YELLOW', "Updated translations.")
except: except: