Commit c970af23 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-upgrade: restore repo list after error

parent d3d09eb7
......@@ -33,8 +33,11 @@ epm_upgrade()
load_helper epm-sh-altlinux
if tasknumber "$@" >/dev/null ; then
load_helper epm-addrepo
load_helper epm-reposave
load_helper epm-removerepo
load_helper epm-Install
try_change_alt_repo
epm_addrepo "$@"
local installlist="$(get_task_packages $*)"
# hack: drop -devel packages to avoid package provided by multiple packages
......@@ -45,6 +48,8 @@ epm_upgrade()
[ -n "$verbose" ] && info "Packages to upgrade: $installlist"
(pkg_names="$installlist" epm_Install) || fatal "Can't update repo"
epm_removerepo "$@"
end_change_alt_repo
return
fi
fi
......
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