constraints parsing: Fix off-by-one in split

Signed-off-by: Niels Thykier <niels@thykier.net>
debian
Niels Thykier 9 years ago
parent 117a5c2166
commit e50037a7da

@ -616,7 +616,7 @@ class Britney(object):
for arch in self.options.architectures: for arch in self.options.architectures:
deps = [] deps = []
for pkg_spec in pkg_list: for pkg_spec in pkg_list:
s = pkg_spec.split(None, 2) s = pkg_spec.split(None, 1)
if len(s) == 1: if len(s) == 1:
deps.append(s[0]) deps.append(s[0])
else: else:

Loading…
Cancel
Save