summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-24 16:28:47 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-26 22:24:24 +0200
commit15134a8e5458fc634482386f1fd2acbccc3ac892 (patch)
treed0bb1f06d8d6dd0ac4a3dfd1eb1f698816efb55f /debian
parent03ae49aca57b499f8ef497c2777b3eaef2516d1a (diff)
Lower-case uname -r output in kernel autoremove helper
This is needed on FreeBSD which has versions like 11.0-RC1, otherwise the tests would fail.
Diffstat (limited to 'debian')
-rw-r--r--debian/apt.auto-removal.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/apt.auto-removal.sh b/debian/apt.auto-removal.sh
index 608d950b5..df9048cd6 100644
--- a/debian/apt.auto-removal.sh
+++ b/debian/apt.auto-removal.sh
@@ -25,7 +25,7 @@ debverlist="$(echo "$list" | cut -d' ' -f 2 | sort --unique --reverse --version-
if [ -n "$1" ]; then
installed_version="$(echo "$list" | awk "\$1 == \"$1\" { print \$2;exit; }")"
fi
-unamer="$(uname -r)"
+unamer="$(uname -r | tr '[A-Z]' '[a-z]')"
if [ -n "$unamer" ]; then
running_version="$(echo "$list" | awk "\$1 == \"$unamer\" { print \$2;exit; }")"
fi