about summary refs log tree commit diff
path: root/xpcdeps
diff options
context:
space:
mode:
authormaxice8 <thinkabit.ukim@gmail.com>2018-03-16 18:37:23 -0300
committerLeah Neukirchen <leah@vuxu.org>2018-03-17 23:35:56 +0100
commit16778479197088881936b2604ac4d60aa3987c46 (patch)
tree5a4bb4bd3701bb87462a707b1cf5fb182528c841 /xpcdeps
parent851d65814ba67848ad06b495e2a55a3a23036057 (diff)
downloadxtools-16778479197088881936b2604ac4d60aa3987c46.tar.gz
xtools-16778479197088881936b2604ac4d60aa3987c46.tar.xz
xtools-16778479197088881936b2604ac4d60aa3987c46.zip
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
Diffstat (limited to 'xpcdeps')
-rwxr-xr-xxpcdeps2
1 files changed, 1 insertions, 1 deletions
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