[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#778591: unblock: pastebinit/1.4-4



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock package pastebinit to allow the fix for
RC-bug 778336 to propagate to testing. Thank you

unblock pastebinit/1.4-3
diff --git a/debian/changelog b/debian/changelog
index 7de6407..b3370f0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+pastebinit (1.4-4) unstable; urgency=medium
+
+  [ Andrew Starr-Bochicchio ]
+  * detect_distro_with_python3.patch: Use platform instead of
+    lsb_release to detect the distro as lsb_release is not
+    available under Python 3 (Closes: #760341). pastebinit
+    will now default again to using paste.debian.net on Debian
+    (Closes: #778336).
+
+ -- Rolf Leggewie <foss@rolf.leggewie.biz>  Tue, 17 Feb 2015 11:35:07 +0800
+
 pastebinit (1.4-3) unstable; urgency=low
 
   * bump debhelper to version 9
diff --git a/debian/patches/detect_distro_with_python3.patch b/debian/patches/detect_distro_with_python3.patch
new file mode 100644
index 0000000..e0737c3
--- /dev/null
+++ b/debian/patches/detect_distro_with_python3.patch
@@ -0,0 +1,15 @@
+Index: pastebinit/pastebinit
+===================================================================
+--- pastebinit.orig/pastebinit	2015-02-16 12:37:04.434846203 -0500
++++ pastebinit/pastebinit	2015-02-16 12:39:22.709104460 -0500
+@@ -37,8 +37,8 @@
+ 
+ # Now try to override it with a distributor pastebin
+ try:
+-    import lsb_release
+-    release = lsb_release.get_distro_information()['ID'].lower()
++    import platform
++    release = platform.linux_distribution()[0].lower()
+     if release == 'debian':
+         defaultPB = "http://paste.debian.net";
+     elif release == 'fedora':
diff --git a/debian/patches/series b/debian/patches/series
index 986704d..b17e68f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 upstream-r205_r201.patch
 increase_timeout.patch
+detect_distro_with_python3.patch

Reply to: