xbps_transaction_update_packages: handle ENODEV case (package removed but not purged).
This commit is contained in:
parent
1a4c13e1bf
commit
53fd5fa10b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user