From a00c54873041e18cc0f9833b6894a09e2e196c87 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 18 Sep 2014 17:52:01 +0200 Subject: xq: rmcol is not needed anymore --- xq | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'xq') diff --git a/xq b/xq index e3db2b9..be68aba 100755 --- a/xq +++ b/xq @@ -1,10 +1,6 @@ #!/bin/sh # xq [-R] PKGS... - query information about XBPS package -rmcol() { - sed 's/\x1b\[[0-9;]*[mG]//g' -} - totop() { sed -n 's/^'"$1"'/&/p;tk;H;:k;${x;s/\n//;p};d' } @@ -21,7 +17,7 @@ if [ $1 = -R ]; then fi for pkg; do - xbps-query $ADDREPO -S "$pkg" | rmcol | + xbps-query $ADDREPO -S "$pkg" | totop short_desc | totop pkgver xbps-query $ADDREPO $R -x "$pkg" | sed 's/^/ /;1s/^/depends:\n/' -- cgit 1.4.1