diff --git a/srcpkgs/xbps-git/patches/packages-on-hold-fix.patch b/srcpkgs/xbps-git/patches/packages-on-hold-fix.patch new file mode 100644 index 00000000000..8ea2f92566e --- /dev/null +++ b/srcpkgs/xbps-git/patches/packages-on-hold-fix.patch @@ -0,0 +1,35 @@ +commit aa154199a6d7d89bfe040755be289b1d827c5727 +Author: Juan RP +Date: Tue Sep 25 15:02:57 2012 +0200 + + xbps_transaction_update_packages: make packages on hold work (duh!). + +diff --git a/lib/transaction_ops.c b/lib/transaction_ops.c +index aa26279..666bd38 100644 +--- lib/transaction_ops.c ++++ lib/transaction_ops.c +@@ -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) diff --git a/srcpkgs/xbps-git/template b/srcpkgs/xbps-git/template index d9aa331d6d9..26f155f2bdb 100644 --- a/srcpkgs/xbps-git/template +++ b/srcpkgs/xbps-git/template @@ -1,7 +1,7 @@ # Template file for 'xbps-git' pkgname=xbps-git version="$(date -u +%Y%m%d)" -revision=1 +revision=2 nofetch=yes noextract=yes build_style=configure