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,7 +213,8 @@ xbps_remove_pkg(const char *pkgname, const char *version, bool update)
if (pkgver == NULL) if (pkgver == NULL)
return ENOMEM; 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", buf = xbps_xasprintf(".%s/metadata/%s/REMOVE",
XBPS_META_PATH, pkgname); XBPS_META_PATH, pkgname);