Commit 03e102e7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add --force to epm-remove (pass packages to apt in any case) and use it in autoorphans

parent a0f2a159
...@@ -43,14 +43,14 @@ case $PMTYPE in ...@@ -43,14 +43,14 @@ case $PMTYPE in
| grep -v -- "^kernel") | grep -v -- "^kernel")
if [ -z "$dryrun" ] && [ -n "$PKGLIST" ] ; then if [ -z "$dryrun" ] && [ -n "$PKGLIST" ] ; then
showcmd epm remove $dryrun $PKGLIST showcmd epm remove $dryrun $force $PKGLIST
confirm_info "We will remove packages above." confirm_info "We will remove packages above."
fi fi
# if [ -n "$dryrun" ] ; then # if [ -n "$dryrun" ] ; then
# echo "$PKGLIST" # echo "$PKGLIST"
# else # else
docmd epm remove $dryrun $(subst_option non_interactive --auto) $PKGLIST docmd epm remove $dryrun $force $(subst_option non_interactive --auto) $PKGLIST
# fi # fi
;; ;;
apt-dpkg|aptitude-dpkg) apt-dpkg|aptitude-dpkg)
......
...@@ -326,7 +326,7 @@ epm_remove() ...@@ -326,7 +326,7 @@ epm_remove()
local STATUS=$? local STATUS=$?
if [ -n "$direct" ] || [ -n "$nodeps" ] || [ "$STATUS" = "$RPMISNOTINSTALLED" ]; then if [ -n "$direct" ] || [ -n "$nodeps" ] || [ "$STATUS" = "$RPMISNOTINSTALLED" ]; then
return $STATUS [ -n "$force" ] || return $STATUS
fi fi
# get package name for hi level package management command (with version if supported and if possible) # get package name for hi level package management command (with version if supported and if possible)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment