From 16778479197088881936b2604ac4d60aa3987c46 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 16 Mar 2018 18:37:23 -0300 Subject: xpcdeps: deal with comma-delimited Requires: udisks2.pc uses Requires: gio-2.0,gobject-2.0,glib-2.0 replace each occourence of , with 1 space --- xpcdeps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xpcdeps') diff --git a/xpcdeps b/xpcdeps index a594d01..bb4ac44 100755 --- a/xpcdeps +++ b/xpcdeps @@ -14,7 +14,7 @@ tempdir="$(mktemp -d)" create_pcfile() { branch=$(git symbolic-ref -q --short HEAD 2>/dev/null) while read -r pkgname file ; do - for rpkg in $( xbps-query --repository=hostdir/binpkgs/"$branch" --cat="$file" "$pkgname" | grep Requires: | cut -d: -f2 ) ; do + for rpkg in $( xbps-query --repository=hostdir/binpkgs/"$branch" --cat="$file" "$pkgname" | grep Requires: | cut -d: -f2 | sed 's/,/ /g' ) ; do # This makes the iterator ignore over the version specifier available for pkg-config # >=, <=, >, <, =, and also ignore versions by ignoring everything that doesn't have # a letter -- cgit 1.4.1