summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2023-04-11 20:34:15 +0300
committerTimo Teräs <timo.teras@iki.fi>2023-04-11 21:02:04 +0300
commitd7650fc5e5a0119879d536b2c3c99ce85befd221 (patch)
tree3c3c60bc554dfec3a72b07438840911c51a13556 /src/apk.c
parent67c0583a5e18c27880e2785536be3e66ff1c4bdd (diff)
downloadapk-tools-d7650fc5e5a0119879d536b2c3c99ce85befd221.tar.gz
apk-tools-d7650fc5e5a0119879d536b2c3c99ce85befd221.tar.bz2
apk-tools-d7650fc5e5a0119879d536b2c3c99ce85befd221.tar.xz
apk-tools-d7650fc5e5a0119879d536b2c3c99ce85befd221.zip
apk: add --force-missing-repositoriestt-stable-wip
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index a101cf6..7505b1c 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -78,6 +78,7 @@ static struct apk_repository_list *apk_repository_new(const char *url)
OPT(OPT_GLOBAL_force, APK_OPT_SH("f") "force") \
OPT(OPT_GLOBAL_force_binary_stdout, "force-binary-stdout") \
OPT(OPT_GLOBAL_force_broken_world, "force-broken-world") \
+ OPT(OPT_GLOBAL_force_missing_repositories, "force-missing-repositories") \
OPT(OPT_GLOBAL_force_non_repository, "force-non-repository") \
OPT(OPT_GLOBAL_force_old_apk, "force-old-apk") \
OPT(OPT_GLOBAL_force_overwrite, "force-overwrite") \
@@ -167,6 +168,9 @@ static int option_parse_global(void *ctx, struct apk_db_options *dbopts, int opt
case OPT_GLOBAL_force_binary_stdout:
apk_force |= APK_FORCE_BINARY_STDOUT;
break;
+ case OPT_GLOBAL_force_missing_repositories:
+ apk_force |= APK_FORCE_MISSING_REPOSITORIES;
+ break;
case OPT_GLOBAL_interactive:
apk_flags |= APK_INTERACTIVE;
break;