1 ### vim:ft=zsh:foldmethod=marker
2 ## patch-tracking.debian.net backend for lookup
3 ## Copyright: 2009, Frank Terbeck <ft@bewatermyfriend.org>
5 LOOKUP_guard || return 1
6 [[ -n ${lookup_describe} ]] &&
7 printf '%s' 'check patch information of debian packages' &&
12 LOOKUP_guard -fd LOOKUP_help_${backend} ||
13 function LOOKUP_help_${backend}() {
14 LOOKUP_guard || return 1
15 printf 'usage: %s <package>\n' ${backend}
16 printf '\n Warps you to a package'\''s page in Debian[1]'\''s Patch Tracking System[2].\n'
18 printf ' %% lookup %s fdm\n' ${backend}
19 printf ' %% lookup %s zsh\n' ${backend}
20 printf '\n[1] <http://www.debian.org>\n'
21 printf '[2] <http://patch-tracking.debian.net>\n'
23 LOOKUP_help && return 0
25 if [[ -n ${lookup_complete} ]] ; then
26 _message 'debian package'
34 LOOKUP_query_handler || return 1
35 if [[ -z ${QUERY} ]] ; then
41 LOOKUP_browser "http://patch-tracker.debian.org/package/${QUERY}"