about summary refs log tree commit diff
path: root/pkgs/applications/misc/cherrytree/subprocess.patch
blob: cff357a5693b03484b1b1e659554a8b52bc5644a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -Naur cherrytree-0.35.6-orig/setup.py cherrytree-0.35.6/setup.py
--- cherrytree-0.35.6-orig/setup.py     2014-05-30 23:25:11.000000000 +0200
+++ cherrytree-0.35.6/setup.py  2015-01-29 07:35:32.785904009 +0100
@@ -205,4 +205,9 @@
           },
        distclass=CherryTreeDist
     )
-    subprocess.call("update-desktop-database")
+    try:
+        subprocess.check_call(['update-desktop-database'])
+    except subprocess.CalledProcessError:
+        pass # handle errors in the called executable
+    except OSError:
+        pass # executable not found