fetch: disable all progress/log output with --stdout

cute-signatures
Natanael Copa 2014-02-03 12:09:41 +00:00
parent 354ba70dc5
commit f8b1c3ef83
1 changed files with 3 additions and 1 deletions

View File

@ -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; struct fetch_ctx *ctx = (struct fetch_ctx *) pctx;
void *mark = (ctx->flags & FETCH_RECURSIVE) ? mark_name_recursive : mark_name; 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_flags &= ~APK_PROGRESS;
apk_verbosity = 0;
}
if (ctx->outdir_fd == 0) if (ctx->outdir_fd == 0)
ctx->outdir_fd = AT_FDCWD; ctx->outdir_fd = AT_FDCWD;