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

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 ;;