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