aboutsummaryrefslogtreecommitdiffstats
path: root/main/apk-tools/0004-state-ignore-missing-world-dependencies-with-force-a.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/apk-tools/0004-state-ignore-missing-world-dependencies-with-force-a.patch')
-rw-r--r--main/apk-tools/0004-state-ignore-missing-world-dependencies-with-force-a.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/apk-tools/0004-state-ignore-missing-world-dependencies-with-force-a.patch b/main/apk-tools/0004-state-ignore-missing-world-dependencies-with-force-a.patch
new file mode 100644
index 0000000000..2b2cc47155
--- /dev/null
+++ b/main/apk-tools/0004-state-ignore-missing-world-dependencies-with-force-a.patch
@@ -0,0 +1,25 @@
+From 0b2052ed064708767358290a73d600ed55fee5b2 Mon Sep 17 00:00:00 2001
+From: Timo Teras <timo.teras@iki.fi>
+Date: Thu, 6 Aug 2009 11:47:44 +0300
+Subject: [PATCH 4/7] state: ignore missing world dependencies with --force and --quiet
+
+---
+ src/state.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/state.c b/src/state.c
+index 50c1ce3..d886754 100644
+--- a/src/state.c
++++ b/src/state.c
+@@ -148,7 +148,7 @@ struct apk_state *apk_state_new(struct apk_database *db)
+ * choices */
+ for (i = 0; db->world != NULL && i < db->world->num; i++) {
+ r = apk_state_prune_dependency(state, &db->world->item[i]);
+- if (r < 0) {
++ if (r < 0 && apk_verbosity && !(apk_flags & APK_FORCE)) {
+ apk_error("Top level dependencies for %s are "
+ "conflicting or unsatisfiable.",
+ db->world->item[i].name->name);
+--
+1.6.4
+