bin/xbps-install/util.c: properly report pkgs to be removed.

This commit is contained in:
Juan RP 2015-02-02 09:49:16 +01:00
parent 88fe064e36
commit 1d0a8649da

View File

@ -154,7 +154,7 @@ print_trans_colmode(struct transaction *trans, int cols)
int rv = xbps_cmpver(iver, ver);
if (rv == 1)
tract = "downgrade";
else if (rv == 0)
else if (rv == 0 && strcmp(tract, "remove"))
tract = "reinstall";
}
/* print pkgname and some blanks */