diff options
author | Timo Teräs <timo.teras@iki.fi> | 2018-01-03 15:17:11 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2018-01-03 16:00:38 +0200 |
commit | 039ff3bd466819909a5295a43e40947a9e0b6c16 (patch) | |
tree | 1f22b1a16dd752e48142a0c5aff0697fb100ea78 /src/fetch.c | |
parent | f90af35e9c563bd4f865d8d47a7ae357191494db (diff) | |
download | apk-tools-039ff3bd466819909a5295a43e40947a9e0b6c16.tar.gz apk-tools-039ff3bd466819909a5295a43e40947a9e0b6c16.tar.bz2 apk-tools-039ff3bd466819909a5295a43e40947a9e0b6c16.tar.xz apk-tools-039ff3bd466819909a5295a43e40947a9e0b6c16.zip |
split --force to several --force-[type] options
This unloads --force as several of the things are really not wanted
together. E.g. --force-refresh is a lot different from --force-broken-world
and doing --force to get the other might introduce unwanted behaviour.
--force is still kept for backwards compatibility and it enables
most things --force was used for.
Diffstat (limited to 'src/fetch.c')
-rw-r--r-- | src/fetch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fetch.c b/src/fetch.c index c6622e5..f9dc9a1 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -319,8 +319,7 @@ static int fetch_main(void *pctx, struct apk_database *db, struct apk_string_arr ctx->outdir_fd = AT_FDCWD; if ((args->num == 1) && (strcmp(args->item[0], "coffee") == 0)) { - if (apk_flags & APK_FORCE) - return cup(); + if (apk_force) return cup(); apk_message("Go and fetch your own coffee."); return 0; } |