bin/xbps-install: don't overwrite action with downgrade if its on hold
Fixed #65
This commit is contained in:
parent
4d1f9832c1
commit
d57a39ef4a
@ -158,7 +158,7 @@ print_trans_colmode(struct transaction *trans, int cols)
|
|||||||
ver = xbps_pkg_version(pkgver);
|
ver = xbps_pkg_version(pkgver);
|
||||||
if (iver) {
|
if (iver) {
|
||||||
int rv = xbps_cmpver(iver, ver);
|
int rv = xbps_cmpver(iver, ver);
|
||||||
if (rv == 1)
|
if (rv == 1 && strcmp(tract, "hold"))
|
||||||
tract = "downgrade";
|
tract = "downgrade";
|
||||||
else if (rv == 0 && strcmp(tract, "remove"))
|
else if (rv == 0 && strcmp(tract, "remove"))
|
||||||
tract = "reinstall";
|
tract = "reinstall";
|
||||||
|
Loading…
Reference in New Issue
Block a user