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

remotes/origin/key_value-onchange
Thomas Eckert 7 years ago
parent 3208ab614e
commit a5dc6214e1
  1. 2
      cdist/conf/type/__package_dpkg/gencode-remote

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

Loading…
Cancel
Save