xbps_transaction_package_replace: fix condition

This commit is contained in:
Juan RP 2020-01-25 11:21:37 +01:00
parent a29f4709d0
commit ed5e481e77
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -73,7 +73,7 @@ xbps_transaction_package_replace(struct xbps_handle *xhp, xbps_array_t pkgs)
xbps_dictionary_get_cstring_nocopy(instd,
"pkgver", &curpkgver);
/* ignore pkgs on hold mode */
if (xbps_dictionary_get_bool(instd, "hold", &hold))
if (xbps_dictionary_get_bool(instd, "hold", &hold) && hold)
continue;
curpkgname = xbps_pkg_name(curpkgver);