From 7fc8ee82319b6b1f657ef3e1cc6006558212e7c6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 18 Feb 2012 16:15:54 +0100 Subject: [PATCH] xbps-bin: check for EEXIST when installing a pkg. --- 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 dc3de170..62ee3d3e 100644 --- a/bin/xbps-bin/transaction.c +++ b/bin/xbps-bin/transaction.c @@ -267,7 +267,7 @@ install_new_pkg(const char *pkg, bool reinstall) int rv; if ((rv = xbps_transaction_install_pkg(pkg, reinstall)) != 0) { - if (rv == ENODEV) { + if (rv == EEXIST) { printf("Package `%s' already installed.\n", pkg); } else if (rv == ENOENT) { xbps_error_printf("xbps-bin: unable to locate '%s' in "