xbps_remove_pkg: only issue XBPS_STATE_REMOVE in no update case.
This commit is contained in:
parent
0ff0aee226
commit
dcac4ec153
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user