summaryrefslogtreecommitdiff
path: root/apt/debfile.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-04-19 17:30:57 +0200
committerJulian Andres Klode <jak@debian.org>2009-04-19 17:30:57 +0200
commitd19943ea8489e06a1f5cd0bd545e0a0aeb4b8551 (patch)
treea41904c7fbeb9065be976b5dd15661c931e644b2 /apt/debfile.py
parenta7026989dd1ea3b70cbfc80cf92077efb2f52ba3 (diff)
downloadpython-apt-d19943ea8489e06a1f5cd0bd545e0a0aeb4b8551.tar.gz
* Update the code to use the new classes.
Diffstat (limited to 'apt/debfile.py')
-rw-r--r--apt/debfile.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/apt/debfile.py b/apt/debfile.py
index c60fc92d..6e4adb39 100644
--- a/apt/debfile.py
+++ b/apt/debfile.py
@@ -57,7 +57,7 @@ class DebPackage(object):
"missing '%s' member" %
"debian-binary"))
control = apt_inst.debExtractControl(open(self.filename))
- self._sections = apt_pkg.ParseSection(control)
+ self._sections = apt_pkg.TagSection(control)
self.pkgname = self._sections["Package"]
def __getitem__(self, key):
@@ -357,7 +357,7 @@ class DebPackage(object):
"""Satisfy the dependencies."""
# turn off MarkAndSweep via a action group (if available)
try:
- _actiongroup = apt_pkg.GetPkgActionGroup(self._cache._depcache)
+ _actiongroup = apt_pkg.ActionGroup(self._cache._depcache)
except AttributeError:
pass
# check depends
@@ -458,7 +458,7 @@ class DscSrcPackage(DebPackage):
conflicts_tags = ["Build-Conflicts", "Build-Conflicts-Indep"]
fobj = open(file)
- tagfile = apt_pkg.ParseTagFile(fobj)
+ tagfile = apt_pkg.TagFile(fobj)
sec = tagfile.Section
try:
while tagfile.Step() == 1: