xbps_transaction_update_packages: make packages on hold work (duh!).

(cherry picked from commit aa154199a6d7d89bfe040755be289b1d827c5727)
This commit is contained in:
Juan RP 2012-09-25 15:02:57 +02:00
parent 7d4ecbb0ab
commit 01915e3030

View File

@ -204,7 +204,7 @@ xbps_transaction_update_packages(struct xbps_handle *xhp)
{
prop_object_t obj;
const char *pkgname, *holdpkgname;
bool newpkg_found = false;
bool foundhold = false, newpkg_found = false;
int rv = 0;
size_t i, x;
@ -219,9 +219,14 @@ xbps_transaction_update_packages(struct xbps_handle *xhp)
if (strcmp(pkgname, holdpkgname) == 0) {
xbps_dbg_printf(xhp, "[rpool] package %s on hold, "
"ignoring updates.\n", pkgname);
continue;
foundhold = true;
break;
}
}
if (foundhold) {
foundhold = false;
continue;
}
rv = transaction_find_pkg(xhp, pkgname, false, true,
false, TRANS_UPDATE);
if (rv == 0)