]> git.pld-linux.org Git - packages/python-logilab-astng.git/commitdiff
- Version: 0.21.1 auto/th/python-logilab-astng-0_21_1-2
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 8 Jul 2011 08:30:35 +0000 (08:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- absolute import handling fix (fixes the case when pylint would report 'module imports itself'
when absolute import matches a sibling module)

Changed files:
    logilab-astng-absolute_import.patch -> 1.1
    python-logilab-astng.spec -> 1.28

logilab-astng-absolute_import.patch [new file with mode: 0644]
python-logilab-astng.spec

diff --git a/logilab-astng-absolute_import.patch b/logilab-astng-absolute_import.patch
new file mode 100644 (file)
index 0000000..0dd51fa
--- /dev/null
@@ -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
index 50c6462f4fb7bc0be3a444752afb377a33e533ec..943edd906c6d274983d202077f8ccd197bd4e320 100644 (file)
@@ -3,12 +3,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
@@ -34,6 +35,8 @@ potrzebami pylinta.
 %prep
 %setup -q -n %{module}-%{version}
 
+%patch0 -p1
+
 %build
 python setup.py build
 
This page took 0.093392 seconds and 4 git commands to generate.