summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-02-03 12:09:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-02-03 12:09:41 +0000
commitf8b1c3ef83a09aa8410e6619c6996b8c9ee0928e (patch)
tree08519d682f8d623e9709044b1f4a3dcf848af8f4 /src
parent354ba70dc5959c671c5a51341d48a4c730b51c1d (diff)
downloadapk-tools-f8b1c3ef83a09aa8410e6619c6996b8c9ee0928e.tar.gz
apk-tools-f8b1c3ef83a09aa8410e6619c6996b8c9ee0928e.tar.bz2
apk-tools-f8b1c3ef83a09aa8410e6619c6996b8c9ee0928e.tar.xz
apk-tools-f8b1c3ef83a09aa8410e6619c6996b8c9ee0928e.zip
fetch: disable all progress/log output with --stdout
Diffstat (limited to 'src')
-rw-r--r--src/fetch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fetch.c b/src/fetch.c
index d619c41..22ea648 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -241,8 +241,10 @@ static int fetch_main(void *pctx, struct apk_database *db, struct apk_string_arr
struct fetch_ctx *ctx = (struct fetch_ctx *) pctx;
void *mark = (ctx->flags & FETCH_RECURSIVE) ? mark_name_recursive : mark_name;
- if (ctx->flags & FETCH_STDOUT)
+ if (ctx->flags & FETCH_STDOUT) {
apk_flags &= ~APK_PROGRESS;
+ apk_verbosity = 0;
+ }
if (ctx->outdir_fd == 0)
ctx->outdir_fd = AT_FDCWD;