aboutsummaryrefslogtreecommitdiffstats
path: root/main/apk-tools/update-return-errors-also-with---quiet.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-05-14 08:31:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-05-14 08:34:17 +0000
commitc3fed183abefeca74cf122f9747ccc38c0bfe5ef (patch)
tree2919f34c803bde8fb221130aacbd3b693ef0d15b /main/apk-tools/update-return-errors-also-with---quiet.patch
parent5a3a4662b456649d728752bf2df642f5da6ed6e6 (diff)
downloadaports-c3fed183abefeca74cf122f9747ccc38c0bfe5ef.tar.bz2
aports-c3fed183abefeca74cf122f9747ccc38c0bfe5ef.tar.xz
main/apk-tools: make update return failure on mirror errors
this is needed to properly fix setup-apkrepos to not pick faulty mirrors. ref #4017
Diffstat (limited to 'main/apk-tools/update-return-errors-also-with---quiet.patch')
-rw-r--r--main/apk-tools/update-return-errors-also-with---quiet.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/apk-tools/update-return-errors-also-with---quiet.patch b/main/apk-tools/update-return-errors-also-with---quiet.patch
new file mode 100644
index 0000000000..907700228c
--- /dev/null
+++ b/main/apk-tools/update-return-errors-also-with---quiet.patch
@@ -0,0 +1,26 @@
+From 2322ba0ad938c142d0bb7a715940fc75ccdbe91b Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Fri, 10 Apr 2015 17:33:21 +0000
+Subject: update: return errors also with --quiet
+
+fixes #4040
+---
+ src/update.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/update.c b/src/update.c
+index 84833ec..72e8673 100644
+--- a/src/update.c
++++ b/src/update.c
+@@ -23,7 +23,7 @@ static int update_main(void *ctx, struct apk_database *db, struct apk_string_arr
+ char buf[32] = "OK:";
+
+ if (apk_verbosity < 1)
+- return 0;
++ return db->repo_update_errors;
+
+ for (i = 0; i < db->num_repos; i++) {
+ repo = &db->repos[i];
+--
+cgit v0.11.2
+