summaryrefslogtreecommitdiff
path: root/src/app_upgrade.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app_upgrade.c')
-rw-r--r--src/app_upgrade.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app_upgrade.c b/src/app_upgrade.c
index 3edd0b1..e0ebcf5 100644
--- a/src/app_upgrade.c
+++ b/src/app_upgrade.c
@@ -170,6 +170,10 @@ static int upgrade_main(void *ctx, struct apk_ctx *ac, struct apk_string_array *
"Use --force-broken-world to override.");
return -1;
}
+ if (db->repositories.stale || db->repositories.unavailable) {
+ apk_err(out, "Not continuing due to stale/unavailable repositories.");
+ return -1;
+ }
solver_flags = APK_SOLVERF_UPGRADE | uctx->solver_flags;
if (!uctx->no_self_upgrade && !args->num) {