diff --git a/srcpkgs/xbps/patches/0001-xbps-uhelper-make-the-version-target-also-match-virt.patch b/srcpkgs/xbps/patches/0001-xbps-uhelper-make-the-version-target-also-match-virt.patch new file mode 100644 index 0000000000..27de8a7fe7 --- /dev/null +++ b/srcpkgs/xbps/patches/0001-xbps-uhelper-make-the-version-target-also-match-virt.patch @@ -0,0 +1,28 @@ +From e25216822bc51b5ff1a87cbe980d1a96843a3a93 Mon Sep 17 00:00:00 2001 +From: Juan RP +Date: Mon, 25 Mar 2013 21:11:30 +0100 +Subject: [PATCH] xbps-uhelper: make the 'version' target also match virtual + pkgs. + +--- + bin/xbps-uhelper/main.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/bin/xbps-uhelper/main.c b/bin/xbps-uhelper/main.c +index f1eb111..25acd45 100644 +--- bin/xbps-uhelper/main.c ++++ bin/xbps-uhelper/main.c +@@ -155,8 +155,8 @@ main(int argc, char **argv) + if (argc != 2) + usage(); + +- dict = xbps_pkgdb_get_pkg(&xh, argv[1]); +- if (dict == NULL) ++ if ((((dict = xbps_pkgdb_get_pkg(&xh, argv[1])) == NULL)) && ++ (((dict = xbps_pkgdb_get_virtualpkg(&xh, argv[1])) == NULL))) + exit(EXIT_FAILURE); + + prop_dictionary_get_cstring_nocopy(dict, "pkgver", &version); +-- +1.8.2 + diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index c2ed975c97..320653fb3d 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -1,7 +1,7 @@ # Template file for 'xbps' pkgname=xbps version=0.22 -revision=1 +revision=2 build_style=configure configure_args="--prefix=/ --exec-prefix=/usr --sbindir=/usr/sbin --enable-static --enable-debug --enable-tests"