about summary refs log tree commit diff
path: root/xq
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-09-18 17:52:01 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-10-10 16:44:40 +0200
commita00c54873041e18cc0f9833b6894a09e2e196c87 (patch)
tree9f0fbd4aea55f959ab0b49a0e0f71a4506da5e2a /xq
parent504b29a475324160472fb60819d7bec6a1e45cb1 (diff)
downloadxtools-a00c54873041e18cc0f9833b6894a09e2e196c87.tar.gz
xtools-a00c54873041e18cc0f9833b6894a09e2e196c87.tar.xz
xtools-a00c54873041e18cc0f9833b6894a09e2e196c87.zip
xq: rmcol is not needed anymore
Diffstat (limited to 'xq')
-rwxr-xr-xxq6
1 files changed, 1 insertions, 5 deletions
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/'