Public bug reported:

I found gnucash's `new user tutorial' didn't work because gnucash-docs
wasn't installed.  I was surprised to find gnucash-docs existed because

    $ sudo apt-show-versions -i
    $ apt-show-versions -a -r -p gnucash
    gnucash-common  1.8.9-4ubuntu2  install ok installed
    gnucash-common  1.8.9-4ubuntu2  unknown
    gnucash-common/unknown uptodate 1.8.9-4ubuntu2
    gnucash 1.8.9-4ubuntu2  install ok installed
    gnucash 1.8.9-4ubuntu2  unknown
    gnucash/unknown uptodate 1.8.9-4ubuntu2
    $

Its apackages data file knows of gnucash-docs (and gnucash-hbci), but
not ipackages.

    $ for f in /var/cache/apt-show-versions/*; do
    >     echo ==== $f
    >     cat -A $f | g gnucash
    > done
    ==== /var/cache/apt-show-versions/apackages
    [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]
    [EMAIL PROTECTED]@[EMAIL PROTECTED]
    [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]
    [EMAIL PROTECTED]@[EMAIL PROTECTED]
    [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]
    [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]
    ==== /var/cache/apt-show-versions/files
    ==== /var/cache/apt-show-versions/ipackages
    [EMAIL PROTECTED]@[EMAIL PROTECTED]
    [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]
    [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]
    $

And ipackges is the one searched by the -r option.  It is built by
parse_file() from /var/lib/dpkg/status.

    $ g '^Package: gnucash.*' /var/lib/dpkg/status
    Package: gnucash-common
    Package: gnucash
    $ gi gnucash-docs /var/lib/dpkg/status
    Suggests: gnucash-sql, gnucash-docs
    $

apt-show-versions(1) says "for the installed and available package
versions" yet it is only displaying information on the installed
'gnucash.*' packages, not the available ones.

apt-cache does better.

    $ apt-cache pkgnames | g gnucash
    gnucash
    gnucash-sql
    gnucash-docs
    gnucash-common
    gnucash-hbci
    $

** Affects: apt-show-versions (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
apt-show-versions doesn't find all gnucash related packages.
https://launchpad.net/bugs/53438

--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to