pkg/list: handle more directory listings

This commit is contained in:
stanley lieber 2013-09-28 01:57:31 -04:00
parent c9bbe34bf6
commit 82362507f7

View file

@ -4,6 +4,6 @@ if(~ $#pkgpath 0)
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'