From 672566c20672113e5b1e271b176ea0e13c315ea6 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Sun, 4 Jul 2021 10:28:19 +0200 Subject: [PATCH] Remove -a cause it can break the system. If the apk cache is outdated (first installation) and you try to upgrade with this "-a" argument without configuring a network, then apk will just strip every packages that are not available. It then leave the phone in a very broken state. The -a was used to handle mainlining software from pmaport to aport (where pmaport uses 9999 version numbers). As we do not rely that much on those softwares (that are now mainlined), we strip this unsafe argument. Signed-off-by: Stacy Harper Signed-off-by: Anjandev Momi --- scripts/core/sxmo_upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/core/sxmo_upgrade.sh b/scripts/core/sxmo_upgrade.sh index 4fb51dc..e8623f7 100755 --- a/scripts/core/sxmo_upgrade.sh +++ b/scripts/core/sxmo_upgrade.sh @@ -7,7 +7,7 @@ echo "Updating all packages from repositories" sudo apk update echo "Upgrading all packages" -sudo apk upgrade -a +sudo apk upgrade echo "Upgrade complete - reboot for all changes to take effect" read -r