diff --git a/lib/package_remove.c b/lib/package_remove.c index 86013b99..c172ab8e 100644 --- a/lib/package_remove.c +++ b/lib/package_remove.c @@ -213,7 +213,8 @@ xbps_remove_pkg(const char *pkgname, const char *version, bool update) if (pkgver == NULL) return ENOMEM; - xbps_set_cb_state(XBPS_STATE_REMOVE, 0, pkgname, version, NULL); + if (!update) + xbps_set_cb_state(XBPS_STATE_REMOVE, 0, pkgname, version, NULL); buf = xbps_xasprintf(".%s/metadata/%s/REMOVE", XBPS_META_PATH, pkgname);