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.
With apt 0.7.25.3ubuntu9.5:
>>> import apt_pkg init_config( ) config. set("APT: :Architecture" , "i386") init_system( ) parse_src_ depends( "hal [!linux-any]") parse_src_ depends( "hal [i386]") parse_src_ depends( "hal [powerpc]") parse_src_ depends( "hal [linux-i386]") parse_src_ depends( "hal [linux-any]") parse_src_ depends( "hal [any-i386]") parse_src_ depends( "hal [linux-any], foo [any-powerpc], bar [hurd-any]") parse_src_ depends( "hal [linux-any], foo [any-powerpc], bar [!hurd-any]")
>>> apt_pkg.
>>> apt_pkg.
>>> apt_pkg.
>>> apt_pkg.
[]
>>> apt_pkg.
[[('hal', '', '')]]
>>> apt_pkg.
[]
>>> apt_pkg.
[[('hal', '', '')]]
>>> apt_pkg.
[[('hal', '', '')]]
>>> apt_pkg.
[[('hal', '', '')]]
>>> apt_pkg.
[[('hal', '', '')]]
>>> apt_pkg.
[[('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.