[Python-apps-commits] r1010 - in packages/pytagsfs/trunk/debian (3 files)

appaji-guest at users.alioth.debian.org appaji-guest at users.alioth.debian.org
Wed Apr 30 11:53:04 UTC 2008


    Date: Wednesday, April 30, 2008 @ 11:53:02
  Author: appaji-guest
Revision: 1010

catch exception and print error when the user is not in the fuse group

Added:
  packages/pytagsfs/trunk/debian/patches/02_dev_fuse_perms.dpatch
Modified:
  packages/pytagsfs/trunk/debian/changelog
  packages/pytagsfs/trunk/debian/patches/00list

Modified: packages/pytagsfs/trunk/debian/changelog
===================================================================
--- packages/pytagsfs/trunk/debian/changelog	2008-04-28 21:49:29 UTC (rev 1009)
+++ packages/pytagsfs/trunk/debian/changelog	2008-04-30 11:53:02 UTC (rev 1010)
@@ -3,8 +3,10 @@
   * Change Section from python to utils
   * Patch 01_bug_reporting to set the bug reporting location to Debian and not
     upstream.
+  * Patch 02_dev_fuse_perms to catch exception and log an error when the user
+    is not in the fuse group.
 
- -- Y Giridhar Appaji Nag <giridhar at appaji.net>  Tue, 22 Apr 2008 22:29:04 +0530
+ -- Y Giridhar Appaji Nag <giridhar at appaji.net>  Wed, 30 Apr 2008 17:22:28 +0530
 
 pytagsfs (0.6.0-1) unstable; urgency=low
 

Modified: packages/pytagsfs/trunk/debian/patches/00list
===================================================================
--- packages/pytagsfs/trunk/debian/patches/00list	2008-04-28 21:49:29 UTC (rev 1009)
+++ packages/pytagsfs/trunk/debian/patches/00list	2008-04-30 11:53:02 UTC (rev 1010)
@@ -1 +1,2 @@
 01_bug_reporting
+02_dev_fuse_perms

Added: packages/pytagsfs/trunk/debian/patches/02_dev_fuse_perms.dpatch
===================================================================
--- packages/pytagsfs/trunk/debian/patches/02_dev_fuse_perms.dpatch	                        (rev 0)
+++ packages/pytagsfs/trunk/debian/patches/02_dev_fuse_perms.dpatch	2008-04-30 11:53:02 UTC (rev 1010)
@@ -0,0 +1,31 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_dev_fuse_perms.dpatch by Y Giridhar Appaji Nag <giridhar at appaji.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: catch exception and log error when the user is not in the fuse group.
+
+ at DPATCH@
+diff -urNad pytagsfs-0.6.0~/modules/pytagsfs/fs.py pytagsfs-0.6.0/modules/pytagsfs/fs.py
+--- pytagsfs-0.6.0~/modules/pytagsfs/fs.py	2008-04-30 17:15:02.000000000 +0530
++++ pytagsfs-0.6.0/modules/pytagsfs/fs.py	2008-04-30 17:15:37.000000000 +0530
+@@ -45,6 +45,7 @@
+   log_debug,
+   log_info,
+   log_warning,
++  log_error,
+   set_log_level,
+   DEBUG,
+   INFO,
+@@ -452,7 +453,11 @@
+         except OptParseError, e:
+             self.parser.error(unicode(e))
+ 
+-        retval = super(FileSystemMappingToRealFiles, self).main()
++        retval = 1
++        try:
++            retval = super(FileSystemMappingToRealFiles, self).main()
++        except:
++            log_error(u'error: are you a part of the fuse group?')
+         self.source_tree_rep.stop()
+         return retval
+ 


Property changes on: packages/pytagsfs/trunk/debian/patches/02_dev_fuse_perms.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the Python-apps-commits mailing list