]> git.saurik.com Git - apt.git/blobdiff - debian/apt.auto-removal.sh
postinst: Correctly pass --home instead of -home, and fixup old user
[apt.git] / debian / apt.auto-removal.sh
index c00416127a26e27f9e413dc24f895627937ecdab..807c6f745b8b2d87bf0b2e5a90b7f27fc9cf8b94 100644 (file)
@@ -41,7 +41,7 @@ version_test_gt ()
        return "$?"
 }
 
-list="$(${DPKG} -l | awk '/^ii[ ]+(linux|kfreebsd|gnumach)-image-[0-9]/ && $2 !~ /-dbg$/ { print $2 }' | sed -e 's#\(linux\|kfreebsd\|gnumach\)-image-##')"
+list="$(${DPKG} -l | awk '/^ii[ ]+(linux|kfreebsd|gnumach)-image-[0-9]+\./ && $2 !~ /-dbg$/ { print $2 }' | sed -e 's#\(linux\|kfreebsd\|gnumach\)-image-##')"
 
 latest_version=""
 previous_version=""