diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-03-21 11:47:56 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-03-21 11:47:56 +0100 |
commit | a17482f89b636a52aacc57776bfc8041cf4da508 (patch) | |
tree | f12a24357fdb2f564691031aab57ae8d11c015b2 /test/integration/test-kernel-helper-autoremove | |
parent | c4b113e650dbdbb4c5c9c6f36437c94db6b214d9 (diff) |
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
Diffstat (limited to 'test/integration/test-kernel-helper-autoremove')
-rwxr-xr-x | test/integration/test-kernel-helper-autoremove | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/integration/test-kernel-helper-autoremove b/test/integration/test-kernel-helper-autoremove index 7713c0875..c51caa758 100755 --- a/test/integration/test-kernel-helper-autoremove +++ b/test/integration/test-kernel-helper-autoremove @@ -20,6 +20,7 @@ CURRENTKERNEL="linux-image-$(uname -r)" insertinstalledpackage "$CURRENTKERNEL" 'amd64' '1' insertinstalledpackage 'linux-image-1.0.0-2-generic' 'amd64' '1.0.0-2' insertinstalledpackage 'linux-image-100.0.0-1-generic' 'amd64' '100.0.0-1' +insertinstalledpackage 'linux-image-amd64' 'amd64' '100.0.0-1' # ensure that the '.' is really a dot and not a wildcard insertinstalledpackage 'linux-headers-1000000-1-generic' 'amd64' '100.0.0-1' |