rpms/pylint/F-13 pylint-disable-msg-cat-fix-bz500272.patch, NONE, 1.1 .cvsignore, 1.16, 1.17 pylint.spec, 1.19, 1.20 sources, 1.16, 1.17

Brian C. Lane bcl at fedoraproject.org
Tue Apr 6 18:12:23 UTC 2010


Author: bcl

Update of /cvs/pkgs/rpms/pylint/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv12748

Modified Files:
	.cvsignore pylint.spec sources 
Added Files:
	pylint-disable-msg-cat-fix-bz500272.patch 
Log Message:
Update to upstream v0.20.0
Add patch for bug 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: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/pylint/F-13/.cvsignore,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -r1.16 -r1.17
--- .cvsignore	30 Aug 2009 15:18:13 -0000	1.16
+++ .cvsignore	6 Apr 2010 18:12:23 -0000	1.17
@@ -1 +1 @@
-pylint-0.18.1.tar.gz
+pylint-0.20.0.tar.gz


Index: pylint.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pylint/F-13/pylint.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -p -r1.19 -r1.20
--- pylint.spec	30 Aug 2009 15:18:13 -0000	1.19
+++ pylint.spec	6 Apr 2010 18:12:23 -0000	1.20
@@ -1,7 +1,7 @@
 %{!?_python_sitelib: %define _python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:           pylint
-Version:        0.18.1
+Version:        0.20.0
 Release:        1%{?dist}
 Summary:        Analyzes Python code looking for bugs and signs of poor quality
 
@@ -12,9 +12,13 @@ Source0:        ftp://ftp.logilab.org/pu
 BuildArch:      noarch
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
-BuildRequires:  python-devel
+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
@@ -50,7 +54,7 @@ rm -rf $RPM_BUILD_ROOT
 rm -rf $RPM_BUILD_ROOT%{_python_sitelib}/pylint/test
 mkdir -pm 755 $RPM_BUILD_ROOT%{_mandir}/man1
 install -pm 644 man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
-for FILE in README doc/*.txt TODO; do
+for FILE in README doc/*.txt; do
     iconv -f iso-8859-15 -t utf-8 $FILE > $FILE.utf8
     mv -f $FILE.utf8 $FILE
 done
@@ -62,7 +66,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc doc/*.txt README ChangeLog TODO examples elisp COPYING
+%doc doc/*.txt README ChangeLog examples elisp COPYING
 %{_python_sitelib}/pylint*
 %{_bindir}/*
 %{_mandir}/man?/*
@@ -77,6 +81,11 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Tue Apr 06 2010 Brian C. Lane <bcl at redhat.com> - 0.20.0-1
+- Added patch for bug 500272 (exception with --disable-msg-cat)
+- Upstream 0.20.0
+- Added python-setuptools to BuildRequires
+
 * Sun Aug 30 2009 Konstantin Ryabitsev <icon at fedoraproject.org> - 0.18.1-1
 - Upstream 0.18.1 (bugfixes and small enhancements)
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/pylint/F-13/sources,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -r1.16 -r1.17
--- sources	30 Aug 2009 15:18:13 -0000	1.16
+++ sources	6 Apr 2010 18:12:23 -0000	1.17
@@ -1 +1 @@
-4b1f9bbbb2f2ee2c2076c5d2a35438fa  pylint-0.18.1.tar.gz
+9f5bda2719d6425a668d27a151d1721f  pylint-0.20.0.tar.gz



More information about the scm-commits mailing list