Merge branch 'master' of git+ssh://mirabilos@evolvis.org/scmrepos/git/shellsnippets...
authorThorsten Glaser <tg@mirbsd.org>
Fri, 18 Apr 2014 21:29:03 +0000 (21:29 +0000)
committerThorsten Glaser <tg@mirbsd.org>
Fri, 18 Apr 2014 21:29:03 +0000 (21:29 +0000)
1  2 
bash-ksh/profile-funcs

@@@ -23,7 -23,17 +23,17 @@@ pts() 
        elif [[ $p = bp:* ]]; then
                ${BROWSER:-lynx} "http://buildd.debian-ports.org/status/package.php?p=${p#bp:}"
        elif [[ $p = f:* ]]; then
 -              ${BROWSER:-lynx} "http://packages.debian.org/search?searchon=contents&keywords=${p#f:}&mode=path&suite=unstable&arch=any"
 +              ${BROWSER:-lynx} "http://packages.debian.org/search?searchon=contents&keywords=${1#f:}&mode=path&suite=unstable&arch=any"
+       elif [[ $p = p:* ]]; then
+               ${BROWSER:-lynx} "http://packages.debian.org/${p#p:}"
+       elif [[ $p = ap:* ]]; then
+               ${BROWSER:-lynx} "http://archive.debian.net/${p#ap:}"
+       elif [[ $p = up:* ]]; then
+               ${BROWSER:-lynx} "http://packages.ubuntu.com/${p#up:}"
+       elif [[ $p = ab:* ]]; then
+               ${BROWSER:-lynx} "http://snapshot.debian.org/binary/${p#ab:}/"
+       elif [[ $p = as:* ]]; then
+               ${BROWSER:-lynx} "http://snapshot.debian.org/package/${p#as:}/${r:+${r%%_*}/}"
        else
                ${BROWSER:-lynx} "http://packages.debian.org/sid/$p"
        fi