diff --git a/debian/changelog b/debian/changelog index 7cea5cf..7c62bd6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -16,6 +16,9 @@ - Replace less by sensible-pager, remove dependency on less. (Closes: #610563) - Fix many typos in man pages (see #610563, thanks Justin B Rye!) + - Fix output from wrong package when backports are involved (Closes: + #647158, thanks Kenyon Ralph) + - Bump version number to 1.4 * [bash_completion] - Install debmany bash completion file to /etc/bash_completion.d instead of as example. Rename it for easier use of dh_install. diff --git a/debmany/debmany b/debmany/debmany index 7e7121f..c96fd99 100755 --- a/debmany/debmany +++ b/debmany/debmany @@ -29,6 +29,9 @@ curdir=`pwd` +# Version of debmany +version=1.4 + error() { # show errorcode and quit @@ -48,7 +51,7 @@ usage() { - echo "debmany $version Thu May 15 16:56:19 CEST 2008 + echo "debmany $version Description: Display a manpage or documentation files from a Debian package. The list of files is displayed in a dialog. Supported locations for debian packages are: Local .deb-file, @@ -134,9 +137,6 @@ usage "Viewer for other data '$othercmd' is not available or executable" fi -# Version of debmany -version=1.3 - # choose whiptail or dialog whiptail=/usr/bin/whiptail dialog=/usr/bin/dialog @@ -243,8 +243,8 @@ if [ -z "$file" ] then - debug "Mode3: Determining the path of '$package' (you use file:// in sources.list)" # comment - aptdata=`apt-get -q2 --print-uris --reinstall install "$package" 2>/dev/null | tail -1` + debug "Mode3: Determining the path of '$package'" # comment + aptdata=`apt-get -q2 --print-uris --reinstall install "$package" 2>/dev/null | grep "$package"_` if [ -z "$aptdata" ] then error "There is no package called '$package'."