Version 3 for DPkg::Pre-Install-Pkgs with MultiArch info
authorDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 26 Jun 2013 15:37:57 +0000 (17:37 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 11 Jul 2013 16:34:21 +0000 (18:34 +0200)
commit7a948ec719ecc020c2337fe3f41c5fc42699e2c1
treece9fa8cb9a5c7bce34fa513c34ad8559813da332
parent90b9659c9a959601d5ed1cc77f7c8b9e0d5b8939
Version 3 for DPkg::Pre-Install-Pkgs with MultiArch info

Adds on top of Version 2 to all displayed version numbers the
architecture as well as the MultiArch flag for consumption by the hooks.

Most of the time the architecture will be the same for both versions
displayed, but packages might change from "all" to "any" (or back)
between versions so we can't display the architecture for packages.

Pseudo-Format for Version 3:
<name> <version> <arch> <m-a-flag> <compare> <version> <arch> <m-a-flag>

Examples:
stuff - - none < 1 amd64 none **CONFIGURE**
libsame 1 i386 same < 2 i386 same **CONFIGURE**
stuff 2 i386 none > 1 i386 none **CONFIGURE**
libsame 2 i386 same > - - none **REMOVE**
toolkit 1 all foreign > - - none **REMOVE**

Closes: #712116
apt-pkg/cacheiterators.h
apt-pkg/deb/dpkgpm.cc
apt-pkg/deb/dpkgpm.h
apt-pkg/pkgcache.cc
doc/apt.conf.5.xml
test/integration/test-bug-712116-dpkg-pre-install-pkgs-hook-multiarch [new file with mode: 0755]