rpms/pylint/devel pylint-disable-msg-cat-fix-bz500272.patch, NONE, 1.1 pylint.spec, 1.21, 1.22

Brian C. Lane bcl at fedoraproject.org
Mon Apr 5 23:58:39 UTC 2010


Author: bcl

Update of /cvs/pkgs/rpms/pylint/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv20102

Modified Files:
	pylint.spec 
Added Files:
	pylint-disable-msg-cat-fix-bz500272.patch 
Log Message:
Add patch to fix exception with --disable-msg-cat (500272)



pylint-disable-msg-cat-fix-bz500272.patch:
 utils.py |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- NEW FILE pylint-disable-msg-cat-fix-bz500272.patch ---
--- a/utils.py  
+++ a/utils.py  
@@ -18,7 +18,7 @@ 
 main pylint class
 """
 
-import sys
+import sys, types
 from os import linesep
 
 from logilab.common.textutils import normalize_text
@@ -181,8 +181,10 @@ class MessagesHandlerMixIn:
             self.config.enable_msg = [mid for mid, val in msgs.items() if val]
 
     def _cat_ids(self, categories):
+        if isinstance(categories, types.StringType):
+            categories = [categories]
         for catid in categories:
-            catid = catid.upper()
+            catid = catid[0].upper()
             if not catid in MSG_TYPES:
                 raise Exception('Unknown category identifier %s' % catid)
             yield catid



Index: pylint.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pylint/devel/pylint.spec,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -p -r1.21 -r1.22
--- pylint.spec	27 Mar 2010 00:44:19 -0000	1.21
+++ pylint.spec	5 Apr 2010 23:58:39 -0000	1.22
@@ -2,7 +2,7 @@
 
 Name:           pylint
 Version:        0.20.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Analyzes Python code looking for bugs and signs of poor quality
 
 Group:          Development/Debuggers
@@ -15,6 +15,10 @@ BuildRoot:      %(mktemp -ud %{_tmppath}
 BuildRequires:  python-devel python-setuptools
 Requires:       python-logilab-astng
 
+# Sent upstream via python-projects list 20100405
+Patch0: pylint-disable-msg-cat-fix-bz500272.patch
+
+
 %description
 Pylint is a python tool that checks if a module satisfy a coding standard. 
 Pylint can be seen as another PyChecker since nearly all tests you can do 
@@ -38,7 +42,7 @@ This package provides a gui tool for pyl
 
 %prep
 %setup -q
-
+%patch0 -p1
 
 %build
 %{__python} setup.py build
@@ -77,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Apr 05 2010 Brian C. Lane <bcl at redhat.com> - 0.20.0-2
+- Added patch for bug 500272 (exception with --disable-msg-cat)
+
 * Fri Mar 26 2010 Brian C.Lane <bcl at redhat.com> - 0.20.0-1
 - Upstream 0.20.0
 - Added python-setuptools to BuildRequires



More information about the scm-commits mailing list