summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-12-14 14:12:59 +0100
committerJulian Andres Klode <jak@debian.org>2015-12-14 14:14:04 +0100
commitd94233d865fd3e418ec4d9100741a1c4ba628533 (patch)
tree72b9439171adda2efbef358295e08de9dd797b81
parent137e8ad4b6ce28b1a1355d5a125d09670388c2b7 (diff)
debian/apt.auto-removal.sh: Adjust -dbg exclusion for multi-arch
Allow an optional colon followed by anything at the end.
-rw-r--r--debian/apt.auto-removal.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/debian/apt.auto-removal.sh b/debian/apt.auto-removal.sh
index dc3a1baca..e7e2ca025 100644
--- a/debian/apt.auto-removal.sh
+++ b/debian/apt.auto-removal.sh
@@ -18,8 +18,7 @@ config_file="${APT_CONF_D}/01autoremove-kernels"
eval $(apt-config shell DPKG Dir::bin::dpkg/f)
test -n "$DPKG" || DPKG="/usr/bin/dpkg"
-
-list="$("${DPKG}" -l | awk '/^[ih][^nc][ ]+(linux|kfreebsd|gnumach)-image-[0-9]+\./ && $2 !~ /-dbg$/ && $2 !~ /-dbgsym$/ { print $2,$3; }' \
+list="$("${DPKG}" -l | awk '/^[ih][^nc][ ]+(linux|kfreebsd|gnumach)-image-[0-9]+\./ && $2 !~ /-dbg(:.*)?$/ && $2 !~ /-dbgsym(:.*)?$/ { print $2,$3; }' \
| sed -e 's#^\(linux\|kfreebsd\|gnumach\)-image-##' -e 's#:[^:]\+ # #')"
debverlist="$(echo "$list" | cut -d' ' -f 2 | sort --unique --reverse --version-sort)"