ref: 25e5507c5789f573b403a64ae680af7fd5b75691
parent: 4d9ce0fb3cb85fe5d41826d29c2fdebbacfe56db
author: stanley lieber <[email protected]>
date: Wed Sep 18 11:25:18 EDT 2013
pkg(1): fix for plan9.bell-labs.com; update repository list
--- a/sys/man/1/pkg
+++ b/sys/man/1/pkg
@@ -113,7 +113,7 @@
.br
.B http://bell-labs.co/9front/pkg/386
.br
-.B http://ports2plan9.googlecode.com/files
+.B http://plan9.bell-labs.com/sources/contrib/staal1978/pkg
.SH SEE ALSO
.IR contrib (1) ,
.IR gzip (1) ,
--- 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/• //g; s/\.tbz.*$//g'
+ hget $pkgpath | htmlfmt | grep '\.tbz' | awk '{print $NF}' | sed -e 's/\.tbz.*$//g'
if not
ls -p $pkgpath/*.tbz | sed 's/\.tbz.*$//g'