summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-01-10 09:29:35 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2019-01-10 09:29:35 +0100
commit947baeea1860a4eb44bb8636e1db295a7bc1d259 (patch)
tree2800318a493cbd0bed4fa9db5f0e1443d8105373
parente2b4bde4bd5caaf8893c46b450d624f9096a1b72 (diff)
downloadapk-tools-947baeea1860a4eb44bb8636e1db295a7bc1d259.tar.gz
apk-tools-947baeea1860a4eb44bb8636e1db295a7bc1d259.tar.bz2
apk-tools-947baeea1860a4eb44bb8636e1db295a7bc1d259.tar.xz
apk-tools-947baeea1860a4eb44bb8636e1db295a7bc1d259.zip
fetch: fix error message for --recursive
Give error message for `apk fetch --recursive missing`
-rw-r--r--src/fetch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fetch.c b/src/fetch.c
index e745d84..9a7c46a 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -229,8 +229,10 @@ static void mark_name_flags(struct apk_database *db, const char *match, struct a
if (!IS_ERR_OR_NULL(name)) {
name->auto_select_virtual = 1;
apk_deps_add(&ctx->world, &dep);
- } else
+ } else {
ctx->errors++;
+ mark_error(ctx, match, name);
+ }
}
static void mark_names_recursive(struct apk_database *db, struct apk_string_array *args, void *pctx)