bin/xbps-install: don't overwrite action with downgrade if its on hold

Fixed #65
This commit is contained in:
Duncaen 2019-03-15 14:06:24 +01:00
parent 4d1f9832c1
commit d57a39ef4a

View File

@ -158,7 +158,7 @@ print_trans_colmode(struct transaction *trans, int cols)
ver = xbps_pkg_version(pkgver);
if (iver) {
int rv = xbps_cmpver(iver, ver);
if (rv == 1)
if (rv == 1 && strcmp(tract, "hold"))
tract = "downgrade";
else if (rv == 0 && strcmp(tract, "remove"))
tract = "reinstall";