aboutsummaryrefslogtreecommitdiffstats
path: root/main/apk-tools/0001-fetch-fix-error-message-for-recursive.patch
blob: 97a6abe6d5f16b5e922c2ed9c7ea13466b031bc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 947baeea1860a4eb44bb8636e1db295a7bc1d259 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Thu, 10 Jan 2019 09:29:35 +0100
Subject: [PATCH] fetch: fix error message for --recursive

Give error message for `apk fetch --recursive missing`
---
 src/fetch.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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)
-- 
2.20.1