[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#215786: apt: build-depends parser can't handle lack of whitespace preceeding architecture restrictions



On Tue, Oct 14, 2003 at 06:57:53PM +0100, James Troup wrote:

> 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...)

Hmm...I didn't know that was supposed to be valid in either case (whether
there is more than one arch or not).

-- 
 - mdz



Reply to: