pkg/list: handle werc directory listings

This commit is contained in:
stanley lieber 2012-10-21 21:44:53 -05:00
parent 54d2424a7c
commit 761f673032
3 changed files with 5 additions and 1 deletions

View file

@ -70,3 +70,4 @@ Interesting, thanks.
Ouch Ouch
Please don't. Please don't.
Test? Test?
sure

View file

@ -217,3 +217,6 @@ I see other projects falling into this problem all the time. It is awesome.
Ha ha. I watch other projects. Ha ha. I watch other projects.
We won't commit it. We won't commit it.
Perhaps. Perhaps.
I don't see any problem.
As developers we make decisions which we believe serve our users the best.
Wow, what's that got to do with anything?

View file

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