diff --git a/lib/package_remove.c b/lib/package_remove.c index 63cdb2dd..b35a4319 100644 --- a/lib/package_remove.c +++ b/lib/package_remove.c @@ -255,9 +255,9 @@ purge: /* * Unregister package from pkgdb. */ - xbps_dictionary_remove(xhp->pkgdb, pkgname); xbps_dbg_printf(xhp, "[remove] unregister %s returned %d\n", pkgver, rv); xbps_set_cb_state(xhp, XBPS_STATE_REMOVE_DONE, 0, pkgver, NULL); + xbps_dictionary_remove(xhp->pkgdb, pkgname); out: if (pkgname != NULL) free(pkgname);