Comment 9 for bug 787500

Revision history for this message
Colin Watson (cjwatson) wrote :

With apt 0.7.25.3ubuntu9.5:

>>> import apt_pkg
>>> apt_pkg.init_config()
>>> apt_pkg.config.set("APT::Architecture", "i386")
>>> apt_pkg.init_system()
>>> apt_pkg.parse_src_depends("hal [!linux-any]")
[]
>>> apt_pkg.parse_src_depends("hal [i386]")
[[('hal', '', '')]]
>>> apt_pkg.parse_src_depends("hal [powerpc]")
[]
>>> apt_pkg.parse_src_depends("hal [linux-i386]")
[[('hal', '', '')]]
>>> apt_pkg.parse_src_depends("hal [linux-any]")
[[('hal', '', '')]]
>>> apt_pkg.parse_src_depends("hal [any-i386]")
[[('hal', '', '')]]
>>> apt_pkg.parse_src_depends("hal [linux-any], foo [any-powerpc], bar [hurd-any]")
[[('hal', '', '')]]
>>> apt_pkg.parse_src_depends("hal [linux-any], foo [any-powerpc], bar [!hurd-any]")
[[('hal', '', '')], [('bar', '', '')]]

This all looks correct. I also did an upgrade of my lucid chroot to a bunch of batched-up stuff from lucid-updates:

The following packages will be upgraded:
  dhcp3-client dhcp3-common initscripts libdbus-1-3 libgssapi-krb5-2
  libk5crypto3 libkrb5-3 libkrb5support0 libldap-2.4-2 libpam-modules
  libpam-runtime libpam0g libtiff4 libtiff4-dev libtiffxx0c2 linux-libc-dev
  logrotate ntpdate openssh-client perl perl-base perl-modules sysv-rc
  sysvinit-utils tzdata x11-xserver-utils
26 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

... and that succeeded. I'm happy to call this good.