From d7650fc5e5a0119879d536b2c3c99ce85befd221 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Tue, 11 Apr 2023 20:34:15 +0300 Subject: apk: add --force-missing-repositories --- src/app_cache.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/app_cache.c') diff --git a/src/app_cache.c b/src/app_cache.c index 13cd6ce..f40c836 100644 --- a/src/app_cache.c +++ b/src/app_cache.c @@ -211,18 +211,13 @@ static int cache_main(void *ctx, struct apk_database *db, struct apk_string_arra actions &= CACHE_CLEAN; if ((actions & CACHE_DOWNLOAD) && (cctx->solver_flags || cctx->add_dependencies)) { - if (db->repositories.stale || db->repositories.unavailable) { - apk_error("Not continuing due to stale/unavailable repositories."); - r = 3; - goto err; - } + if (apk_db_repository_check(db) != 0) return 3; } if (r == 0 && (actions & CACHE_CLEAN)) r = cache_clean(db); if (r == 0 && (actions & CACHE_DOWNLOAD)) r = cache_download(cctx, db, args); -err: return r; } -- cgit v1.2.3-60-g2f50