about summary refs log tree commit diff
path: root/xq
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-08-02 17:57:57 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-08-02 17:57:57 +0200
commitedcb1d4c1c47493f90f600cd867b7077bec3124b (patch)
tree59817250fa5b1a1174dc388030446b8d9be754d2 /xq
parent88ebd48d4460fa750f1d3d4300791854492a90a8 (diff)
downloadxtools-edcb1d4c1c47493f90f600cd867b7077bec3124b.tar.gz
xtools-edcb1d4c1c47493f90f600cd867b7077bec3124b.tar.xz
xtools-edcb1d4c1c47493f90f600cd867b7077bec3124b.zip
xq: show pkgver/short_desc first
Diffstat (limited to 'xq')
-rwxr-xr-xxq4
1 files changed, 3 insertions, 1 deletions
diff --git a/xq b/xq
index 34f26c7..12c857f 100755
--- a/xq
+++ b/xq
@@ -7,7 +7,9 @@ ADDREPO="--repository=hostdir/binpkgs/$BRANCH
 	--repository=../../hostdir/binpkgs/$BRANCH"
 
 for pkg; do
-	xbps-query $ADDREPO -S "$pkg"
+	xbps-query $ADDREPO -S "$pkg" |
+		sed -n 's/^short_desc/&/p;tk;H;:k;${x;s/\n//;p};d' |
+		sed -n 's/^pkgver/&/p;tk;H;:k;${x;s/\n//;p};d'
 	xbps-query $ADDREPO -x "$pkg" | sed 's/^/	/;1s/^/depends:\n/'
 	REVDEP=$(xbps-query -X "$pkg" | sed 's/^/	/' )
 	if [ "$REVDEP" ]; then