1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 19:15:39 +00:00
nixpkgs/pkgs/applications/misc/cherrytree/subprocess.patch
Andrey Arapov 9f623a820d Adds a new package: cherrytree - A hierarchical note taking application
cherrytree - A hierarchical note taking application, featuring rich text
and syntax highlighting, storing data in a single xml or sqlite file.

This commit also adds PyGtkSourceView - a Python wrapper for the GtkSourceView widget library.

Official page http://www.giuspen.com/cherrytree
2015-01-31 02:17:00 +01:00

16 lines
563 B
Diff

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