diff options
| author | Julian Andres Klode <jak@debian.org> | 2015-06-10 15:23:14 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2015-06-10 15:24:27 +0200 |
| commit | 4f34ca7de1defc09b119565a35b71e4cca919346 (patch) | |
| tree | a532676fcfc68e81d4a7e1f11b02837f664022d9 /apt | |
| parent | 54fb38040f5f314cac9f075685f7e3d77423b7e6 (diff) | |
| download | python-apt-4f34ca7de1defc09b119565a35b71e4cca919346.tar.gz | |
apt.debfile: Fix splitting of multi-lines Binary fields in dsc files
In a multi-line field, a comma might be followed by a newline instead
of a space.
Closes: #751770
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/debfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt/debfile.py b/apt/debfile.py index 20cf563c..440f9532 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -735,7 +735,7 @@ class DscSrcPackage(DebPackage): if 'Source' in sec: self.pkgname = sec['Source'] if 'Binary' in sec: - self.binaries = sec['Binary'].split(', ') + self.binaries = [b.strip() for b in sec['Binary'].split(',')] for tag in sec.keys(): if tag in sec: self._sections[tag] = sec[tag] |
