[Python-apps-commits] r8887 - in packages/kupfer/trunk/debian (4 files)

dktrkranz at users.alioth.debian.org dktrkranz at users.alioth.debian.org
Sun Jun 24 10:33:53 UTC 2012


    Date: Sunday, June 24, 2012 @ 10:33:52
  Author: dktrkranz
Revision: 8887

* debian/patches/uses_fragment.patch               
  - Do not die if urlparse doesn't have uses_fragment method anymore,   
    recent Python versions dropped it (Closes: #678580)

Added:
  packages/kupfer/trunk/debian/patches/
  packages/kupfer/trunk/debian/patches/series
  packages/kupfer/trunk/debian/patches/uses_fragment.patch
Modified:
  packages/kupfer/trunk/debian/changelog

Modified: packages/kupfer/trunk/debian/changelog
===================================================================
--- packages/kupfer/trunk/debian/changelog	2012-06-22 22:24:20 UTC (rev 8886)
+++ packages/kupfer/trunk/debian/changelog	2012-06-24 10:33:52 UTC (rev 8887)
@@ -1,3 +1,11 @@
+kupfer (0+v208-2) UNRELEASED; urgency=low
+
+  * debian/patches/uses_fragment.patch
+    - Do not die if urlparse doesn't have uses_fragment method anymore,
+      recent Python versions dropped it (Closes: #678580).
+
+ -- Luca Falavigna <dktrkranz at debian.org>  Sun, 24 Jun 2012 12:32:46 +0200
+
 kupfer (0+v208-1) unstable; urgency=low
 
   * New upstream release.

Added: packages/kupfer/trunk/debian/patches/series
===================================================================
--- packages/kupfer/trunk/debian/patches/series	                        (rev 0)
+++ packages/kupfer/trunk/debian/patches/series	2012-06-24 10:33:52 UTC (rev 8887)
@@ -0,0 +1 @@
+uses_fragment.patch

Added: packages/kupfer/trunk/debian/patches/uses_fragment.patch
===================================================================
--- packages/kupfer/trunk/debian/patches/uses_fragment.patch	                        (rev 0)
+++ packages/kupfer/trunk/debian/patches/uses_fragment.patch	2012-06-24 10:33:52 UTC (rev 8887)
@@ -0,0 +1,20 @@
+Description: Do not die if urlparse doesn't have uses_fragment method anymore
+Author: Luca Falavigna <dktrkranz at debian.org>
+Forwarded: https://bugs.launchpad.net/kupfer/+bug/1014502
+
+Index: kupfer-0+v208/kupfer/core/qfurl.py
+===================================================================
+--- kupfer-0+v208.orig/kupfer/core/qfurl.py	2012-06-01 19:51:14.000000000 +0200
++++ kupfer-0+v208/kupfer/core/qfurl.py	2012-06-24 12:30:28.939788111 +0200
+@@ -8,7 +8,10 @@
+ 
+ # One would hope that there was a better way to do this
+ urlparse.uses_netloc.append(QFURL_SCHEME)
+-urlparse.uses_fragment.append(QFURL_SCHEME)
++try:
++    urlparse.uses_fragment.append(QFURL_SCHEME)
++except AttributeError:
++    pass
+ 
+ class QfurlError (Exception):
+ 	pass




More information about the Python-apps-commits mailing list