From 53fd5fa10b87ddf75ce3d175cba96992493278c1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 16 Dec 2011 11:03:40 +0100 Subject: [PATCH] xbps_transaction_update_packages: handle ENODEV case (package removed but not purged). --- lib/transaction_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction_ops.c b/lib/transaction_ops.c index 10da9dc7..81719f60 100644 --- a/lib/transaction_ops.c +++ b/lib/transaction_ops.c @@ -201,7 +201,7 @@ xbps_transaction_update_packages(void) while ((obj = prop_object_iterator_next(iter)) != NULL) { prop_dictionary_get_cstring_nocopy(obj, "pkgname", &pkgname); if ((rv = xbps_transaction_update_pkg(pkgname)) != 0) { - if (rv == ENOENT || rv == EEXIST) { + if (rv == ENOENT || rv == EEXIST || rv == ENODEV) { /* * missing pkg or installed version is * greater than or equal than pkg