ref: e5edfdff28fbd9548a5b86fc2e0ddd6726ffc79f
parent: 3b4bf13a9631b332b6883c6853c16783f9c643e0
author: stanley lieber <stanley.lieber@gmail.com>
date: Fri Sep 27 21:57:31 EDT 2013
pkg/list: handle more directory listings
--- 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' | awk '{print $NF}' | sed -e 's/\.tbz.*$//g'+ hget $pkgpath | htmlfmt | grep '\.tbz' | sed -e 's/\.tbz.*$//g' | awk '{print $NF}'if not
ls -p $pkgpath/*.tbz | sed 's/\.tbz.*$//g'
--
⑨