lib/package_remove.c: add a bit of debugging if pkg wasn't found in pkgdb.
This commit is contained in:
parent
44533f9f57
commit
d0380d5cd2
@ -180,11 +180,13 @@ xbps_remove_pkg(struct xbps_handle *xhp,
|
||||
pkgname = xbps_pkg_name(pkgver);
|
||||
assert(pkgname);
|
||||
|
||||
if ((rv = xbps_pkg_state_installed(xhp, pkgname, &state)) != 0)
|
||||
goto out;
|
||||
xbps_dbg_printf(xhp, "attempting to remove %s state %d\n", pkgver, state);
|
||||
|
||||
xbps_dbg_printf(xhp, "attempting to remove %s state %d\n",
|
||||
pkgver, state);
|
||||
if ((rv = xbps_pkg_state_installed(xhp, pkgname, &state)) != 0) {
|
||||
xbps_dbg_printf(xhp, "cannot find %s in pkgdb: %s\n",
|
||||
pkgver, strerror(rv));
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!update)
|
||||
xbps_set_cb_state(xhp, XBPS_STATE_REMOVE, 0, pkgver, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user