From 7967efc1e0350a7332dcc47051a7a9843f3771cd Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 14 Sep 2016 18:12:44 +0200 Subject: [PATCH] xbps-install: do not fail on update if any of the provided packages are up to date. addresses #194 --- bin/xbps-install/transaction.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/xbps-install/transaction.c b/bin/xbps-install/transaction.c index 625a3a8f..00850f86 100644 --- a/bin/xbps-install/transaction.c +++ b/bin/xbps-install/transaction.c @@ -274,9 +274,10 @@ update_pkg(struct xbps_handle *xhp, const char *pkgname) int rv; rv = xbps_transaction_update_pkg(xhp, pkgname); - if (rv == EEXIST) + if (rv == EEXIST) { printf("Package '%s' is up to date.\n", pkgname); - else if (rv == ENOENT) + return 0; + } else if (rv == ENOENT) fprintf(stderr, "Package '%s' not found in " "repository pool.\n", pkgname); else if (rv == ENODEV)