xbps_transaction_remove_pkg: handle correctly target pkg.
This commit is contained in:
parent
4d7c51c368
commit
0845d6cae3
@ -313,7 +313,18 @@ xbps_transaction_remove_pkg(struct xbps_handle *xhp,
|
||||
prop_array_add(unsorted, obj);
|
||||
xbps_dbg_printf(xhp, "%s: added into transaction (remove).\n", pkgver);
|
||||
}
|
||||
reqby = xbps_pkgdb_get_pkg_revdeps(xhp, pkgver);
|
||||
/*
|
||||
* If target pkg is required by any installed pkg, the client must be aware
|
||||
* of this to take appropiate action.
|
||||
*/
|
||||
if ((prop_object_type(reqby) == PROP_TYPE_ARRAY) &&
|
||||
(prop_array_count(reqby) > 0))
|
||||
rv = EEXIST;
|
||||
|
||||
prop_object_release(orphans);
|
||||
return rv;
|
||||
|
||||
rmpkg:
|
||||
/*
|
||||
* Add pkg dictionary into the transaction unsorted queue.
|
||||
|
Loading…
Reference in New Issue
Block a user