Commit a006e708 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-release-upgrade: add support for ROSA/13

parent 3a68438a
......@@ -566,12 +566,16 @@ epm_release_upgrade()
return
;;
"ROSA")
# TODO: move to distro related upgrade
#epm repo remove all
# FIXME: don't work:
#epm repo add "http://mirror.rosalinux.ru/rosa/rosa2021.1/repository/$DISTRARCH"
#showcmd urpmi.addmedia --distrib http://mirror.yandex.ru/mandriva/devel/2010.2/i586/
#sudocmd urpmi --auto-update --replacefiles
sudocmd dnf --refresh upgrade || fatal
sudocmd dnf clean all
DV=$(echo "$DISTRVERSION" | sed -e "s|\..*||")
[ "$DV" = "2021" ] && DV=12
local RELEASEVER="$1"
[ -n "$RELEASEVER" ] || RELEASEVER=$(($DV + 1))
confirm_info 'Upgrade to $DISTRNAME/$RELEASEVER'
sudocmd dnf distro-sync -y --releasever=$RELEASEVER --allowerasing
sudocmd rpm --rebuilddb
epm upgrade
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