dsa-check-running-kernel: sort kernel versions better
authorPeter Palfrader <peter@palfrader.org>
Mon, 14 Oct 2019 09:49:28 +0000 (11:49 +0200)
committerPeter Palfrader <peter@palfrader.org>
Mon, 14 Oct 2019 09:49:28 +0000 (11:49 +0200)
commitd95cb3856c48aff6792f8a6799fb1f37d44c4c51
tree97c20a7ed71962a2bac1a5889316b2dead697e3e
parent9a1809e53ff50b3cc865e0d6642f206a2999f6bc
dsa-check-running-kernel: sort kernel versions better

When we ask apt-cache for information on the metapackage to extract the
actual kernel image it depends on, we sort that output.  It's not clear
why we do that, since we pass the option --no-all-versions to apt-cache
so we should only get one answer anyhow.  Nevertheless, since we sort we
might just as well use -V to version sort that output.  dpkg-version
sort would be even better, but hey.  This is based on Erik Auerswald's
patch in #884328.
dsa-nagios-checks/checks/dsa-check-running-kernel
dsa-nagios-checks/debian/changelog