diff options
author | Andrew Patterson <andrew.patterson@hpe.com> | 2016-07-06 13:40:16 -0600 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-07-08 08:44:05 +0200 |
commit | 130176bcb6ce65c98d5692196c55cc18b4c210e0 (patch) | |
tree | 64dcd8fe4190dfe17ee94778ee729649fe5805d6 /debian | |
parent | 4bdf29d39c401ac479f6486469328fa648f9feab (diff) |
Add kernels with "+" in the package name to APT::NeverAutoRemove
Escape "+" in kernel package names when generating APT::NeverAutoRemove
list so it is not treated as a regular expression meta-character.
[Changed by David Kalnischkies: let test actually test the change]
Closes: #830159
Diffstat (limited to 'debian')
-rw-r--r-- | debian/apt.auto-removal.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/apt.auto-removal.sh b/debian/apt.auto-removal.sh index e7e2ca025..608d950b5 100644 --- a/debian/apt.auto-removal.sh +++ b/debian/apt.auto-removal.sh @@ -38,7 +38,7 @@ $running_version $previous_version" | sort -u | sed -e '/^$/ d')" kernels="$( (echo "$1 $unamer"; for deb in $debkernels; do echo "$list" | awk "\$2 == \"$deb\" { print \$1; }"; done; ) \ - | sed -e 's#\.#\\.#g' -e '/^$/ d' | sort -u)" + | sed -e 's#\([\.\+]\)#\\\1#g' -e '/^$/ d' | sort -u)" generateconfig() { cat <<EOF |