[Pkg-bazaar-commits] ./bzr-gtk/unstable r442: Check if command exists first before updating the cache to support all platforms
Martin Albisetti
argentina at gmail.com
Fri Apr 10 07:44:54 UTC 2009
------------------------------------------------------------
revno: 442
committer: Martin Albisetti <argentina at gmail.com>
branch nick: bzr-gtk
timestamp: Wed 2008-03-05 11:57:21 +0000
message:
Check if command exists first before updating the cache to support all platforms
modified:
setup.py
-------------- next part --------------
=== modified file 'setup.py'
--- a/setup.py 2008-03-05 11:29:24 +0000
+++ b/setup.py 2008-03-05 11:57:21 +0000
@@ -40,8 +40,10 @@
#self.data_files.extend(self._nautilus_plugin())
install_data.run(self)
- if sys.platform[:5] == 'linux':
- cmd = os.popen('gtk-update-icon-cache -f -t /usr/share/icons/hicolor')
+ try:
+ subprocess.check_call('gtk-update-icon-cache -f -t /usr/share/icons/hicolor')
+ except:
+ pass
def _compile_po_files(self):
data_files = []
More information about the Pkg-bazaar-commits
mailing list