[python-debian/master 1/2] Use the apt_pkg.TagFile class instead of apt_pkg.ParseTagFile()

John Wright john.wright at hp.com
Thu Jan 28 23:14:16 UTC 2010


Closes: #552190
---
 debian/changelog        |    4 ++++
 debian_bundle/deb822.py |    4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2241ba2..8969bbe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,10 @@ python-debian (0.1.15) UNRELEASED; urgency=low
   * changelog: add iterator over changelog blocks (Closes: #539334)
   * changelog: split tests into tests/test_changelog.py for consistency
 
+  [ John Wright ]
+  * deb822: Use the apt_pkg.TagFile class instead of apt_pkg.ParseTagFile()
+    (Closes: #552190)
+
  -- Filippo Giunchedi <filippo at debian.org>  Sun, 09 Aug 2009 13:01:16 +0100
 
 python-debian (0.1.14) unstable; urgency=low
diff --git a/debian_bundle/deb822.py b/debian_bundle/deb822.py
index dd1d201..a3298d5 100644
--- a/debian_bundle/deb822.py
+++ b/debian_bundle/deb822.py
@@ -268,7 +268,7 @@ class Deb822(Deb822Dict):
         """
 
         if _have_apt_pkg and use_apt_pkg and isinstance(sequence, file):
-            parser = apt_pkg.ParseTagFile(sequence)
+            parser = apt_pkg.TagFile(sequence)
             while parser.Step() == 1:
                 x = cls(fields=fields, _parsed=TagFileWrapper(parser))
                 if len(x) != 0:
@@ -278,7 +278,7 @@ class Deb822(Deb822Dict):
                     # Make a new parser, starting it right before the next
                     # section
                     offset = parser.Offset() - 1
-                    parser = apt_pkg.ParseTagFile(sequence)
+                    parser = apt_pkg.TagFile(sequence)
                     parser.Jump(offset)
 
         else:
-- 
1.6.3.3





More information about the pkg-python-debian-commits mailing list