lib/transaction_check_revdeps.c: fix regression in revdeps check

this is probably the same as reported in #245.

Its again not resetting/initializing a variable in a loop,
falling back to the previous set value.
This commit is contained in:
Duncan Overbruck 2020-03-04 23:39:27 +01:00
parent 4d40179a8a
commit aed9402d62
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -172,6 +172,8 @@ xbps_transaction_check_revdeps(struct xbps_handle *xhp, xbps_array_t pkgs)
error = true;
goto out;
}
ttype = 0;
if ((revpkgd = xbps_find_pkg_in_array(pkgs, pkgname, 0))) {
ttype = xbps_transaction_pkg_type(revpkgd);
if (ttype == XBPS_TRANS_REMOVE)