hold [PACKAGE] [PACKAGE...]
Prevent package listed from being upgraded if they are already installed.
+keep_downloads yes|no
+ Do not remove downloaded packages after its successful installation.
+
EOF
}
option_set() {
local option="$1"; shift
- sed -i -e "/^$option/ s/.*/$option = $*/" "$poldek_conf"
+ sed -i -re "/^#?$option\s*=/ s/.*/$option = $*/" "$poldek_conf"
}
# parse command line args
ignore|hold)
option_set "$command" "$arguments"
;;
+ keep_downloads)
+ option_set "keep downloads" "$arguments"
+ ;;
*)
die "Unknown command: $command"
;;