From 6229e06a67d8db8f4390badbe4fc2ba861c015f0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 27 Nov 2011 09:29:13 +0100 Subject: [PATCH] xbps-bin: fix a broken condition. --- bin/xbps-bin/transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-bin/transaction.c b/bin/xbps-bin/transaction.c index fc467b5e..b3e2dc63 100644 --- a/bin/xbps-bin/transaction.c +++ b/bin/xbps-bin/transaction.c @@ -332,7 +332,7 @@ remove_pkg(const char *pkgname, bool purge, bool recursive) else if (rv == ENOENT) { printf("Package `%s' is not currently installed.\n", pkgname); return 0; - } else { + } else if (rv != 0) { xbps_error_printf("Failed to queue `%s' for removing: %s\n", pkgname, strerror(rv)); return rv;