fix if-clause to generate hook-info for 'rc' packages
authorDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 16 Jul 2013 21:15:55 +0000 (23:15 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 16 Jul 2013 21:15:55 +0000 (23:15 +0200)
commit86fdeec2a76f6b134ee8400eb1e53d06fe0974fe
treeb1d2b05cf27d1ee0b632398c8603201207ea1646
parentc7a629dd114c41a1244744e2f5085df2f505dc90
fix if-clause to generate hook-info for 'rc' packages

The code incorrectly skips printing of current version information,
if the package has no current version (for APT, but for dpkg as it is
the case for packages which are removed but not purged) by using an
unintended "else if" rather than an "if".

Closes: 717006
apt-pkg/deb/dpkgpm.cc
test/integration/test-bug-712116-dpkg-pre-install-pkgs-hook-multiarch