about summary refs log tree commit diff
path: root/xls
diff options
context:
space:
mode:
Diffstat (limited to 'xls')
-rwxr-xr-xxls12
1 files changed, 7 insertions, 5 deletions
diff --git a/xls b/xls
index 126bf23..344029f 100755
--- a/xls
+++ b/xls
@@ -2,11 +2,13 @@
 # xls PKGS... - list files contained in PKGS (including binpkgs)
 
 BRANCH=$(git symbolic-ref -q --short HEAD 2>/dev/null)
+ADDREPO="--repository=hostdir/binpkgs/$BRANCH
+	--repository=../hostdir/binpkgs/$BRANCH
+	--repository=../../hostdir/binpkgs/$BRANCH
+	--repository=hostdir/binpkgs
+	--repository=../hostdir/binpkgs
+	--repository=../../hostdir/binpkgs"
 
 for pkg; do
-	xbps-query \
-		--repository=hostdir/binpkgs/$BRANCH \
-		--repository=../hostdir/binpkgs/$BRANCH \
-		--repository=../../hostdir/binpkgs/$BRANCH \
-		-f $pkg
+	xbps-query $ADDREPO -f $pkg
 done