Package list debian-goodies / 9a943ae
Fix output from wrong package when backports are involved (Closes:#647158) Bump debmany version number to 1.4. Thanks Kenyon Ralph! Axel Beckert 9 years ago
2 changed file(s) with 9 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
1515 - Replace less by sensible-pager, remove dependency on less. (Closes:
1616 #610563)
1717 - Fix many typos in man pages (see #610563, thanks Justin B Rye!)
18 - Fix output from wrong package when backports are involved (Closes:
19 #647158, thanks Kenyon Ralph)
20 - Bump version number to 1.4
1821 * [bash_completion]
1922 - Install debmany bash completion file to /etc/bash_completion.d
2023 instead of as example. Rename it for easier use of dh_install.
2828
2929 curdir=`pwd`
3030
31 # Version of debmany
32 version=1.4
33
3134 error()
3235 {
3336 # show errorcode and quit
4750
4851 usage()
4952 {
50 echo "debmany $version Thu May 15 16:56:19 CEST 2008
53 echo "debmany $version
5154 Description: Display a manpage or documentation files from a Debian package.
5255 The list of files is displayed in a dialog.
5356 Supported locations for debian packages are: Local .deb-file,
133136 usage "Viewer for other data '$othercmd' is not available or executable"
134137 fi
135138
136 # Version of debmany
137 version=1.3
138
139139 # choose whiptail or dialog
140140 whiptail=/usr/bin/whiptail
141141 dialog=/usr/bin/dialog
242242
243243 if [ -z "$file" ]
244244 then
245 debug "Mode3: Determining the path of '$package' (you use file:// in sources.list)" # comment
246 aptdata=`apt-get -q2 --print-uris --reinstall install "$package" 2>/dev/null | tail -1`
245 debug "Mode3: Determining the path of '$package'" # comment
246 aptdata=`apt-get -q2 --print-uris --reinstall install "$package" 2>/dev/null | grep "$package"_`
247247 if [ -z "$aptdata" ]
248248 then
249249 error "There is no package called '$package'."