xbps_transaction_update_packages: handle ENODEV case (package removed but not purged).

This commit is contained in:
Juan RP 2011-12-16 11:03:40 +01:00
parent 1a4c13e1bf
commit 53fd5fa10b

View File

@ -201,7 +201,7 @@ xbps_transaction_update_packages(void)
while ((obj = prop_object_iterator_next(iter)) != NULL) { while ((obj = prop_object_iterator_next(iter)) != NULL) {
prop_dictionary_get_cstring_nocopy(obj, "pkgname", &pkgname); prop_dictionary_get_cstring_nocopy(obj, "pkgname", &pkgname);
if ((rv = xbps_transaction_update_pkg(pkgname)) != 0) { 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 * missing pkg or installed version is
* greater than or equal than pkg * greater than or equal than pkg