Commit ece1e1f8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-release_upgrade: allow two params: from and to

parent 4cc5729d
......@@ -363,16 +363,18 @@ epm_release_upgrade()
fi
fi
# check forced target
if [ -n "$pkg_filenames" ] ; then
[ "$(__wcount $pkg_filenames)" = "1" ] || fatal "Too many args: $pkg_filenames"
TARGET=""
[ -n "$3" ] && fatal "Too many args: $*"
if [ -n "$2" ] ; then
DISTRVERSION="$1"
info "Force current distro version as $DISTRVERSION"
TARGET="$2"
elif [ -n "$1" ] ; then
TARGET="$1"
fi
TARGET="$pkg_filenames"
__alt_repofix
# TODO: ask before upgrade
__switch_alt_to_distro $DISTRVERSION $TARGET
return
......
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