only consider versioned kernel packages in autoremove
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 21 Mar 2014 10:47:56 +0000 (11:47 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 21 Mar 2014 10:47:56 +0000 (11:47 +0100)
commita17482f89b636a52aacc57776bfc8041cf4da508
treef12a24357fdb2f564691031aab57ae8d11c015b2
parentc4b113e650dbdbb4c5c9c6f36437c94db6b214d9
only consider versioned kernel packages in autoremove

Metapackages like "linux-image-amd64" are otherwise matched by our
extraction as well, which later on can't be successfully compared via
dpkg --compare-versions as the 'amd64' bit isn't a version number.
(Luckily none of our architectures starts with a digit.)

This was broken by me in 0.9.16 as I moved a shell-glob matcher to a
regex-based one which has slightly different semantics regarding '*'.

Closes: 741962
debian/apt.auto-removal.sh
test/integration/test-kernel-helper-autoremove