Fix output from wrong package when backports are involved (Closes:#647158)
Bump debmany version number to 1.4. Thanks Kenyon Ralph!
Axel Beckert
11 years ago
15 | 15 |
- Replace less by sensible-pager, remove dependency on less. (Closes:
|
16 | 16 |
#610563)
|
17 | 17 |
- 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
|
18 | 21 |
* [bash_completion]
|
19 | 22 |
- Install debmany bash completion file to /etc/bash_completion.d
|
20 | 23 |
instead of as example. Rename it for easier use of dh_install.
|
28 | 28 |
|
29 | 29 |
curdir=`pwd`
|
30 | 30 |
|
|
31 |
# Version of debmany
|
|
32 |
version=1.4
|
|
33 |
|
31 | 34 |
error()
|
32 | 35 |
{
|
33 | 36 |
# show errorcode and quit
|
|
47 | 50 |
|
48 | 51 |
usage()
|
49 | 52 |
{
|
50 | |
echo "debmany $version Thu May 15 16:56:19 CEST 2008
|
|
53 |
echo "debmany $version
|
51 | 54 |
Description: Display a manpage or documentation files from a Debian package.
|
52 | 55 |
The list of files is displayed in a dialog.
|
53 | 56 |
Supported locations for debian packages are: Local .deb-file,
|
|
133 | 136 |
usage "Viewer for other data '$othercmd' is not available or executable"
|
134 | 137 |
fi
|
135 | 138 |
|
136 | |
# Version of debmany
|
137 | |
version=1.3
|
138 | |
|
139 | 139 |
# choose whiptail or dialog
|
140 | 140 |
whiptail=/usr/bin/whiptail
|
141 | 141 |
dialog=/usr/bin/dialog
|
|
242 | 242 |
|
243 | 243 |
if [ -z "$file" ]
|
244 | 244 |
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"_`
|
247 | 247 |
if [ -z "$aptdata" ]
|
248 | 248 |
then
|
249 | 249 |
error "There is no package called '$package'."
|