summaryrefslogtreecommitdiff
path: root/utils/migrate-0.8.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-02-07 20:26:46 +0100
committerJulian Andres Klode <jak@debian.org>2010-02-07 20:26:46 +0100
commit0401747854d7fc26eb097663822e26a988cf4aa4 (patch)
tree703ccf2a688ba56852f75520ad1d0113f4ab9f01 /utils/migrate-0.8.py
parentfdb6cbdee070ae6671bdb5ed6b8a549aac1d8107 (diff)
downloadpython-apt-0401747854d7fc26eb097663822e26a988cf4aa4.tar.gz
* utils/migrate-0.8.py:
- Improve C++ parsing and add apt.progress.old to the modules, reduces false positives.
Diffstat (limited to 'utils/migrate-0.8.py')
-rwxr-xr-xutils/migrate-0.8.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/migrate-0.8.py b/utils/migrate-0.8.py
index dc919e1d..61059b2a 100755
--- a/utils/migrate-0.8.py
+++ b/utils/migrate-0.8.py
@@ -82,8 +82,10 @@ def find_deprecated_cpp():
break
while lines and not ';' in line:
- while lines and not 'COMPAT_0_7' in line:
+ while lines and not 'COMPAT_0_7' in line and not ';' in line:
line = lines.pop(0)
+ if ';' in line:
+ continue
if lines:
line = lines.pop(0)
while lines and not '#endif' in line:
@@ -122,8 +124,8 @@ def find_deprecated_py():
"""
modules = ('apt', 'apt.package', 'apt.cdrom', 'apt.cache', 'apt.debfile',
- 'apt.progress', 'aptsources.distinfo', 'aptsources.distro',
- 'aptsources.sourceslist')
+ 'apt.progress', 'apt.progress.old', 'aptsources.distinfo',
+ 'aptsources.distro', 'aptsources.sourceslist')
import apt_pkg
apt_pkg._COMPAT_0_7 = 0