summaryrefslogtreecommitdiff
path: root/apt/debfile.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-02-13 15:34:24 +0100
committerJulian Andres Klode <jak@debian.org>2010-02-13 15:34:24 +0100
commitc8fa835540d60393f2a1168625bf5d5ae01c4538 (patch)
treeb99415fbe2d2bfe2249c3beb5083c2b0587734c9 /apt/debfile.py
parent0401747854d7fc26eb097663822e26a988cf4aa4 (diff)
downloadpython-apt-c8fa835540d60393f2a1168625bf5d5ae01c4538.tar.gz
python/tagfile.cc: Implement the iterator protocol in TagFile.
Diffstat (limited to 'apt/debfile.py')
-rw-r--r--apt/debfile.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/apt/debfile.py b/apt/debfile.py
index 65f43f20..e27917d5 100644
--- a/apt/debfile.py
+++ b/apt/debfile.py
@@ -448,9 +448,8 @@ class DscSrcPackage(DebPackage):
fobj = open(file)
tagfile = apt_pkg.TagFile(fobj)
- sec = tagfile.section
try:
- while tagfile.step() == 1:
+ for sec in tagfile:
for tag in depends_tags:
if not tag in sec:
continue