From cee43f7e7dfa588385deea06101e93e85886f1db Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 2 Sep 2014 18:09:02 +0200 Subject: Stop reading after the "Format" stanza in a .dsc file This makes the tagfile parser skip the last gpg signature part that also contains a "Version:" line. --- apt/debfile.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apt') diff --git a/apt/debfile.py b/apt/debfile.py index 2c95bdf1..9d9b2695 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -726,6 +726,9 @@ class DscSrcPackage(DebPackage): self.binaries = sec['Binary'].split(', ') if 'Version' in sec: self._sections['Version'] = sec['Version'] + # we are done + if 'Format' in sec: + break finally: del tagfile fobj.close() -- cgit v1.2.3