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:
@@ -172,6 +172,8 @@ xbps_transaction_check_revdeps(struct xbps_handle *xhp, xbps_array_t pkgs)
|
|||||||
error = true;
|
error = true;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ttype = 0;
|
||||||
if ((revpkgd = xbps_find_pkg_in_array(pkgs, pkgname, 0))) {
|
if ((revpkgd = xbps_find_pkg_in_array(pkgs, pkgname, 0))) {
|
||||||
ttype = xbps_transaction_pkg_type(revpkgd);
|
ttype = xbps_transaction_pkg_type(revpkgd);
|
||||||
if (ttype == XBPS_TRANS_REMOVE)
|
if (ttype == XBPS_TRANS_REMOVE)
|
||||||
|
Reference in New Issue
Block a user