xbps_remove_pkg: only issue XBPS_STATE_REMOVE in no update case.

This commit is contained in:
Juan RP 2011-11-25 15:08:33 +01:00
parent 0ff0aee226
commit dcac4ec153

View File

@ -213,6 +213,7 @@ xbps_remove_pkg(const char *pkgname, const char *version, bool update)
if (pkgver == NULL)
return ENOMEM;
if (!update)
xbps_set_cb_state(XBPS_STATE_REMOVE, 0, pkgname, version, NULL);
buf = xbps_xasprintf(".%s/metadata/%s/REMOVE",