Commit da0965ef authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm upgrade: move upgrade to usrmerged filesystem to epm upgrade

parent 12545d1d
......@@ -17,19 +17,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
__check_upgrade_conditions()
{
[ "$BASEDISTRNAME" = "alt" ] || return 0
[ "$DISTRVERSION" = "Sisyphus" ] || return 0
# https://www.altlinux.org/Usrmerge
epm status --installed filesystem 3.1 && return 0
info "Installing usrmerge-hier-convert to merge file hierarhy, check https://www.altlinux.org/Usrmerge."
epm upgrade vim-minimal vim-console
epm install usrmerge-hier-convert
return 0
}
epm_full_upgrade_help()
{
get_help HELPCMD $SHAREDIR/epm-full_upgrade
......@@ -103,7 +90,6 @@ confirm_action()
confirm_action "Do upgrade installed packages? [Y/n]" || full_upgrade_no_upgrade=1
if [ -z "$full_upgrade_no_upgrade" ] ; then
[ -n "$quiet" ] || echo
__check_upgrade_conditions || fatal "upgrade conditions is not satisfied."
docmd epm $dryrun upgrade || fatal "upgrading of the system is failed."
fi
......
......@@ -20,6 +20,24 @@
load_helper epm-check_updated_repo
load_helper epm-sh-warmup
__check_upgrade_conditions()
{
#[ "$BASEDISTRNAME" = "alt" ] || return 0
[ "$DISTRVERSION" = "Sisyphus" ] || return 0
# fast skip if already updated
[ -L "/bin" ] && return 0
# https://www.altlinux.org/Usrmerge
epm status --installed filesystem 3.1 && return 0
info "Installing usrmerge-hier-convert to merge file hierarhy, check https://www.altlinux.org/Usrmerge."
epm upgrade vim-minimal vim-console
epm install usrmerge-hier-convert
return 0
}
epm_upgrade()
{
local CMD
......@@ -58,6 +76,8 @@ epm_upgrade()
return
fi
__check_upgrade_conditions || fatal "upgrade conditions is not satisfied."
fi
# Solus supports upgrade for a package (with all dependencies)
......
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