Commit 21a41b9e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-release_upgrade: allow upgrade/downgrade to c9

parent 5f23ec17
...@@ -39,6 +39,8 @@ get_prev_release() ...@@ -39,6 +39,8 @@ get_prev_release()
echo "c8.1" ;; echo "c8.1" ;;
"c9") "c9")
echo "c8.2" ;; echo "c8.2" ;;
"9")
echo "10" ;;
*) *)
echo "$FROM" ;; echo "$FROM" ;;
esac esac
......
...@@ -319,7 +319,7 @@ __switch_alt_to_distro() ...@@ -319,7 +319,7 @@ __switch_alt_to_distro()
__check_system "$TO" __check_system "$TO"
docmd epm update-kernel || fatal docmd epm update-kernel || fatal
;; ;;
"p8"|"p8 p9"|"t8 p9"|"c8 c9"|"c8 p9"|"c8.1 p9"|"c8.2 p9"|"p9 p9") "p8"|"p8 p9"|"t8 p9"|"c8 c9"|"c8 p9"|"c8.1 p9"|"c8.2 p9"|"p9 p9"|"p9 c9")
confirm_info "Upgrade $DISTRNAME from $FROM to $TO ..." confirm_info "Upgrade $DISTRNAME from $FROM to $TO ..."
docmd epm install rpm apt "$(get_fix_release_pkg "$FROM")" || fatal docmd epm install rpm apt "$(get_fix_release_pkg "$FROM")" || fatal
info "Workaround for https://bugzilla.altlinux.org/show_bug.cgi?id=35492 ..." info "Workaround for https://bugzilla.altlinux.org/show_bug.cgi?id=35492 ..."
...@@ -384,7 +384,7 @@ __switch_alt_to_distro() ...@@ -384,7 +384,7 @@ __switch_alt_to_distro()
__check_system "$TO" __check_system "$TO"
docmd epm upgrade || fatal docmd epm upgrade || fatal
;; ;;
"Sisyphus p8"|"Sisyphus p9"|"Sisyphus p10"|"Sisyphus c8"|"Sisyphus c8.1") "Sisyphus p8"|"Sisyphus p9"|"Sisyphus p10"|"Sisyphus c8"|"Sisyphus c8.1"|"Sisyphus c9")
confirm_info "Downgrade $DISTRNAME from $FROM to $TO ..." confirm_info "Downgrade $DISTRNAME from $FROM to $TO ..."
docmd epm install "$(get_fix_release_pkg "$FROM")" docmd epm install "$(get_fix_release_pkg "$FROM")"
__switch_repo_to $TO __switch_repo_to $TO
......
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