`dpkg {-r|-P}` needs the package-, not the filename

This commit is contained in:
tom 2018-02-21 15:01:08 +01:00
parent 3208ab614e
commit a5dc6214e1
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ case "$state" in
[ -f "$__object/parameter/purge-if-absent" ] \
&& action="--purge" \
|| action="--remove"
echo "dpkg $action $__object_id"
echo "dpkg $action ${__object_id%%_*}"
echo "removed ($action)" >> "$__messages_out"
;;
*) echo "ERROR: unknown state '$state'" >&2 ;;