[Python-apps-commits] r7782 - in packages/pychecker/trunk/debian (3 files)

pronovic at users.alioth.debian.org pronovic at users.alioth.debian.org
Fri Nov 11 18:43:57 UTC 2011


    Date: Friday, November 11, 2011 @ 18:43:55
  Author: pronovic
Revision: 7782

Apply patch for bug #648426

Added:
  packages/pychecker/trunk/debian/patches/dist-packages.patch
Modified:
  packages/pychecker/trunk/debian/changelog
  packages/pychecker/trunk/debian/patches/series

Modified: packages/pychecker/trunk/debian/changelog
===================================================================
--- packages/pychecker/trunk/debian/changelog	2011-11-11 11:35:49 UTC (rev 7781)
+++ packages/pychecker/trunk/debian/changelog	2011-11-11 18:43:55 UTC (rev 7782)
@@ -1,3 +1,10 @@
+pychecker (0.8.19-4) unstable; urgency=low
+
+  * Support dist-packages in addition to site-packages (closes: #648426).
+    - Apply dist-patckages.patch, supplied by Nigel Evans
+
+ -- Kenneth J. Pronovici <pronovic at debian.org>  Fri, 11 Nov 2011 10:06:03 -0600
+
 pychecker (0.8.19-3) unstable; urgency=low
 
   * Bump standards version to 3.9.2.0; no packaging changes.

Added: packages/pychecker/trunk/debian/patches/dist-packages.patch
===================================================================
--- packages/pychecker/trunk/debian/patches/dist-packages.patch	                        (rev 0)
+++ packages/pychecker/trunk/debian/patches/dist-packages.patch	2011-11-11 18:43:55 UTC (rev 7782)
@@ -0,0 +1,19 @@
+# Description: Support Debian-specific standard library location.
+#  Debian has chosen to put Python standard libraries in dist-packages rather
+#  than site-packages.  However, this is somewhat non-standard, and confuses
+#  pychecker.  This patch adds support for dist-packages in addition to
+#  site-packages.
+# Bug-Debian: http://bugs.debian.org/648426
+# Author: Nigel Evans
+# Reviewed-By: Kenneth J. Pronovici <pronovic at debian.org>
+--- a/pychecker/warn.py
++++ b/pychecker/warn.py
+@@ -451,7 +451,7 @@
+             ret = []
+             for std_lib in std_libs:
+                 path = os.path.split(std_lib)
+-                if path[1] == 'site-packages' :
++                if path[1] in ('dist-packages', 'site-packages') :
+                     ret.append(path[0])
+             return ret
+         except ImportError :

Modified: packages/pychecker/trunk/debian/patches/series
===================================================================
--- packages/pychecker/trunk/debian/patches/series	2011-11-11 11:35:49 UTC (rev 7781)
+++ packages/pychecker/trunk/debian/patches/series	2011-11-11 18:43:55 UTC (rev 7782)
@@ -4,3 +4,4 @@
 put-back-missing-files-from-cvs.patch
 spe-improvements.patch
 remove-bashisms.patch
+dist-packages.patch




More information about the Python-apps-commits mailing list