|
|
|
@ -55,7 +55,7 @@ if [ $exitcode != 0 ] || [ ! -z "$errors" ];then
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
#ensure all packages are really purged
|
|
|
|
|
PURGE_LIST="$(sudo LANG=C apt-get purge --dry-run $PKG_LIST | sed -n '/The following packages/,/to remove/p' | sed -e '2,$!d' -e '$d' | tr -d '*' | tr '\n' ' ')"
|
|
|
|
|
PURGE_LIST="$(sudo LANG=C apt-get purge --dry-run $PKG_LIST | sed -n '/The following packages will be REMOVED/,/to remove and/p' | sed -e '2,$!d' -e '$d' | tr -d '*' | tr '\n' ' ' | sed 's/The following.*//')"
|
|
|
|
|
|
|
|
|
|
if [ ! -z "$PURGE_LIST" ];then
|
|
|
|
|
error "APT did not exit with an error, but these packages are still installed somehow: $PURGE_LIST"
|
|
|
|
|