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
| grep -v -- "^kernel")
if [ -z "$dryrun" ] && [ -n "$PKGLIST" ] ; then
showcmd epm remove $dryrun $PKGLIST
showcmd epm remove $dryrun $force $PKGLIST
confirm_info "We will remove packages above."
fi
# if [ -n "$dryrun" ] ; then
# echo "$PKGLIST"
# else
docmd epm remove $dryrun $(subst_option non_interactive --auto) $PKGLIST
docmd epm remove $dryrun $force $(subst_option non_interactive --auto) $PKGLIST
# fi
;;
apt-dpkg|aptitude-dpkg)
......
......@@ -326,7 +326,7 @@ epm_remove()
local STATUS=$?
if [ -n "$direct" ] || [ -n "$nodeps" ] || [ "$STATUS" = "$RPMISNOTINSTALLED" ]; then
return $STATUS
[ -n "$force" ] || return $STATUS
fi
# 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