shithub: riscv

Download patch

ref: 91c13bda9037612ffec3b4c3a8a2d4b083eac4e8
parent: aa8f8dd1510a89d4506cb65b27acc60fa2920fa9
author: stanley lieber <[email protected]>
date: Sat Jun 2 19:03:50 EDT 2012

pkg/list: show only pkg names

--- a/sys/src/cmd/pkg/list
+++ b/sys/src/cmd/pkg/list
@@ -4,6 +4,6 @@
 	pkgpath=http://r-36.net/9front/pkg/$cputype
 
 if(~ $pkgpath ftp* http*)
-	hget $pkgpath | htmlfmt | grep '\.tbz' | sed -e 's/\.tbz$//'
+	hget $pkgpath | htmlfmt | grep '\.tbz' | sed -e 's/\.tbz.*$//g'
 if not
-	ls -p $pkgpath/*.tbz | sed 's/\.tbz//g'
+	ls -p $pkgpath/*.tbz | sed 's/\.tbz.*$//g'