Dear maintainer,

I've prepared an NMU for specto (versioned as 0.2.2-3.2). The diff
is attached to this message.

Regards.

diff -u specto-0.2.2/debian/changelog specto-0.2.2/debian/changelog
--- specto-0.2.2/debian/changelog
+++ specto-0.2.2/debian/changelog
@@ -1,3 +1,12 @@
+specto (0.2.2-3.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Apply patch from Matt Kraai to not use users ~/data directory
+    (Closes: #619588)
+  * Set urgency to medium due to rc bug fix
+
+ -- Alexander Reichle-Schmehl <toli...@debian.org>  Sat, 03 Dec 2011 11:54:33 +0100
+
 specto (0.2.2-3.1) unstable; urgency=low
 
   * Non-maintainer upload.
only in patch2:
unchanged:
--- specto-0.2.2.orig/debian/patches/02_use_system_data_directories.patch
+++ specto-0.2.2/debian/patches/02_use_system_data_directories.patch
@@ -0,0 +1,23 @@
+diff -ru specto-0.2.2~/spectlib/util.py specto-0.2.2/spectlib/util.py
+--- specto-0.2.2~/spectlib/util.py	2011-03-25 19:45:02.000000000 -0700
++++ specto-0.2.2/spectlib/util.py	2011-03-25 19:46:42.000000000 -0700
+@@ -48,15 +48,9 @@
+ 
+ def get_path(category=None):
+     """ Return the correct path. """
+-    if not os.path.exists('data'):
+-        if not category:
+-            PATH = "%s/share/specto/" % sys.prefix
+-        elif category=="doc":
+-            PATH = "%s/share/doc/specto/" % sys.prefix
+-    else:
+-        if not category:
+-            PATH =os.path.join(os.getcwd(), "data/")
+-        elif category=="doc":
+-            PATH = os.path.join(os.getcwd(), "data/doc/")
++    if not category:
++        PATH = "%s/share/specto/" % sys.prefix
++    elif category=="doc":
++        PATH = "%s/share/doc/specto/" % sys.prefix
+     return PATH
+ 

Reply via email to