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

Re: Bug#87159: explanation of Build-Depends et. al. is unclear



On Thu, 22 Feb 2001, Sean 'Shaleh' Perry wrote:

> Specifically, [!i386 m68k] seems like it could be valid, but seems to not be.
> The archs are also whitespace separated, some people are using commas.  Perhaps
> an exmple with multiple arches would be good.

It is supported by APT..

Python 1.5.2 (#0, Apr  5 2000, 04:40:10)  [GCC 2.95.2 20000313 (Debian GNU/Linux)] on linux2
>>> import apt_pkg
>>> apt_pkg.init()
>>> apt_pkg.Config["APT::Architecture"] = "m68k"
>>> apt_pkg.ParseSrcDepends("apt (> 1.0) [!i386 m68k]");
[[('apt', '1.0', '>=')]]
>>> apt_pkg.Config["APT::Architecture"] = "i386"
>>> apt_pkg.ParseSrcDepends("apt (> 1.0) [!i386 m68k]");
[]
>>> apt_pkg.Config["APT::Architecture"] = "sparc"
>>> apt_pkg.ParseSrcDepends("apt (> 1.0) [!i386 m68k]");
[]

Which seems to be correct.

Jason



Reply to: