Skip to content

Commit

Permalink
Update sfos-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Olf0 authored Jun 17, 2019
1 parent bd1cd34 commit a42bff0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions usr/bin/sfos-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ then
echo >&2
fi

if [ "$installed_release" != "$upgrade_release" ]
then
if [ "$installed_release" = "$upgrade_release" ]
then compar0="e4"
else
known_stop_releases="3.0.0.8\n2.2.0.29\n2.0.5.6\n2.0.0.10\n1.1.9.30\n1.1.7.28\n1.1.2.16\n1.0.2.5\n1.0.0.5"
# 0.99.5.11, 1.0.0.5 and 1.0.1.10 are not documented to be "stop releases",
# taking the information of sections 4 and 5 (in combination!) at
Expand Down Expand Up @@ -544,16 +545,15 @@ then
echo >&2
fi

compar_u="$(compare_versions "$installed_release" "$upgrade_release")"
case "$compar_u" in
e?)
case "$compar0" in
e4)
echo -n "Notice: Do you want to ensure this SailfishOS $upgrade_release installation to be complete and up to date?" >&2
;;
l?)
echo -n "Notice: Do you want to upgrade SailfishOS from $installed_release to ${upgrade_release}?" >&2
;;
g?)
case "$compar_u$set_ssu" in
case "$compar0$set_ssu" in
g4)
echo "Notice: About to DOWNGRADE SailfishOS from $installed_release to ${upgrade_release}, which just carries a smaller \"point release\" number." >&2
echo "Nevertheless this may make this SailfishOS installation not working properly." >&2
Expand Down

0 comments on commit a42bff0

Please sign in to comment.