Bug#215786: apt: build-depends parser can't handle lack of whitespace preceeding architecture restrictions
Package: apt
Version: 0.5.14
Severity: minor
apt's build-depends parser can't handle a lack of whitespace
preceeding the architecture restriction when the restriction has more
than one architecture. e.g.
| >>> import apt_pkg
| >>> apt_pkg.init()
| >>> apt_pkg.ParseSrcDepends('foo[i386]');
| [[('foo[i386]', '', '')]]
| >>> apt_pkg.ParseSrcDepends('foo[i386 alpha]');
| Traceback (most recent call last):
| File "<stdin>", line 1, in ?
| ValueError: Problem Parsing Dependency
| >>> apt_pkg.ParseSrcDepends('foo [i386 alpha]');
| [[('foo', '', '')]]
| >>>
(Reproduced with apt-get, obviously...)
--
James
Reply to: