provide access to the apt-file functionality of the PTS
authorThorsten Glaser <tg@mirbsd.org>
Wed, 26 Jun 2013 18:37:28 +0000 (18:37 +0000)
committerThorsten Glaser <tg@mirbsd.org>
Wed, 26 Jun 2013 18:37:28 +0000 (18:37 +0000)
bash-ksh/profile-funcs

index bda9632..084a870 100644 (file)
@@ -20,6 +20,8 @@ pts() {
                ${BROWSER:-lynx} "https://buildd.debian.org/status/package.php?p=${p#bd:}"
        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"
        else
                ${BROWSER:-lynx} "http://packages.debian.org/sid/$p"
        fi