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