Author: jajcus                       Date: Fri Jul  8 08:30:40 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- Version: 0.21.1
- absolute import handling fix (fixes the case when pylint would report 'module 
imports itself' 
when absolute import matches a sibling module)

---- Files affected:
packages/python-logilab-astng:
   python-logilab-astng.spec (1.27 -> 1.28) , 
logilab-astng-absolute_import.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-logilab-astng/python-logilab-astng.spec
diff -u packages/python-logilab-astng/python-logilab-astng.spec:1.27 
packages/python-logilab-astng/python-logilab-astng.spec:1.28
--- packages/python-logilab-astng/python-logilab-astng.spec:1.27        Mon Dec 
27 13:00:55 2010
+++ packages/python-logilab-astng/python-logilab-astng.spec     Fri Jul  8 
10:30:35 2011
@@ -4,12 +4,13 @@
 Summary:       Python Abstract Syntax Tree New Generation
 Summary(pl.UTF-8):     Abstrakcyjne drzewa składniowe Pythona nowej generacji
 Name:          python-logilab-astng
-Version:       0.21.0
-Release:       1
+Version:       0.21.1
+Release:       2
 License:       GPL
 Group:         Development/Languages/Python
 Source0:       ftp://ftp.logilab.fr/pub/astng/%{module}-%{version}.tar.gz
-# Source0-md5: 582751f0abbd8a530b610f7f1bdd290a
+# Source0-md5: 064a1cb970c283cf18e05a990db48576
+Patch0:                logilab-astng-absolute_import.patch
 URL:           http://www.logilab.org/projects/astng
 BuildRequires: python-devel
 BuildRequires: python-modules >= 1:2.5
@@ -35,6 +36,8 @@
 %prep
 %setup -q -n %{module}-%{version}
 
+%patch0 -p1
+
 %build
 python setup.py build
 
@@ -66,6 +69,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.28  2011/07/08 08:30:35  jajcus
+- Version: 0.21.1
+- absolute import handling fix (fixes the case when pylint would report 
'module imports itself'
+when absolute import matches a sibling module)
+
 Revision 1.27  2010/12/27 12:00:55  patrys
 - 0.21.0
 

================================================================
Index: packages/python-logilab-astng/logilab-astng-absolute_import.patch
diff -u /dev/null 
packages/python-logilab-astng/logilab-astng-absolute_import.patch:1.1
--- /dev/null   Fri Jul  8 10:30:40 2011
+++ packages/python-logilab-astng/logilab-astng-absolute_import.patch   Fri Jul 
 8 10:30:35 2011
@@ -0,0 +1,12 @@
+diff -dur logilab-astng-0.21.1.orig/scoped_nodes.py 
logilab-astng-0.21.1/scoped_nodes.py
+--- logilab-astng-0.21.1.orig/scoped_nodes.py  2011-01-11 15:47:29.000000000 
+0100
++++ logilab-astng-0.21.1/scoped_nodes.py       2011-07-08 10:19:38.000000000 
+0200
+@@ -342,6 +342,8 @@
+         # XXX this returns non sens when called on an absolute import
+         # like 'pylint.checkers.logilab.astng.utils'
+         # XXX doesn't return absolute name if self.name isn't absolute name
++        if self.absolute_import_activated() and level is None:
++            return modname
+         if level:
+             if self.package:
+                 level = level - 1
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-logilab-astng/python-logilab-astng.spec?r1=1.27&r2=1.28&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to