diff options
| author | Michael Vogt <mvo@ubuntu.com> | 2014-09-02 18:09:02 +0200 |
|---|---|---|
| committer | Michael Vogt <mvo@ubuntu.com> | 2014-09-02 18:11:01 +0200 |
| commit | cee43f7e7dfa588385deea06101e93e85886f1db (patch) | |
| tree | 1b43f6e51d30c5976743a553ab3c18d46d1272b4 /apt | |
| parent | 578b3317af12be7c5ecedd8240c09a3d513fa382 (diff) | |
| download | python-apt-cee43f7e7dfa588385deea06101e93e85886f1db.tar.gz | |
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.
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/debfile.py | 3 |
1 files changed, 3 insertions, 0 deletions
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() |
