[pacman-dev] [PATCH] Do not remove conflict by default

Allan McRae allan at archlinux.org
Sun Aug 30 10:52:12 UTC 2009

When a conflict is detected, pacman asks if the user wants to remove
the conflicting package.  In many cases this is a bad idea.  e.g.

udev conflicts with initscripts. Remove initscripts [Y/n]
util-linux-ng conflicts with e2fsprogs. Remove e2fsprogs? [Y/n]

This changes the query to [y/N].

Signed-off-by: Allan McRae <allan at archlinux.org>
 src/pacman/callback.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index e83a97d..0f52343 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -259,7 +259,7 @@ void cb_trans_conv(pmtransconv_t event, void *data1, void *data2,
-			*response = yesno(_(":: %s conflicts with %s. Remove %s?"),
+			*response = noyes(_(":: %s conflicts with %s. Remove %s?"),
 					(char *)data1,
 					(char *)data2,
 					(char *)data2);

More information about the pacman-dev mailing list