#593248 aptitude: pkg info view header shows misleading version numbers

Package:
aptitude
Source:
aptitude
Description:
terminal-based package manager
Submitter:
Felipe Sateler
Date:
2015-09-25 11:57:05 UTC
Severity:
minor
#593248#5
Date:
2010-08-16 16:30:33 UTC
From:
To:
When viewing a package, one can select a version. If the version
selected is from experimental, pressing C should fetch the experimental
version changelog.

#593248#10
Date:
2011-02-17 16:35:56 UTC
From:
To:
Some additionnal notes:
This doesn't seem to be a bug but rather a feature :) (or more precisely
a default policy).

CLI version of aptitude has the same "problem"; aptitude changelog
<package> return the changelog of the version that aptitude would
install, and that's explained in the manpage: « By default, the
changelog for the version which would be installed with "aptitude
install" is downloaded.»

I think that default policy for changelog fetch with aptitude should be
revised: for both CLI and ncurses, aptitude should fetch the changelog
of installed version when the package is installed.

btw I think severity should be set to whishlist.


Regards,

#593248#13
Date:
2012-03-19 10:36:34 UTC
From:
To:
retitle 593248 aptitude: pkg info view header shows misleading version numbers
severity 593248 minor
summary 593248 0
thanks

The pkg info view header always shows the current and candidate version
numbers for a package regardless of which version is being viewed.  Other
details on that screen (dependencies, etc.) are all relevant to a particular
version so that version number should be displayed in the header line.

manuk7 <manuk7@laposte.net> wrote:

Hi

To be sure, you will get the candidate version if on a line such as this:

aptitude 0.6.6
i    --\ apt                                       0.8.15.9       0.8.15.10

Which mentions the candidate version number even when on the
experimental version's info screen (0.8.16~exp13).  As that line
explicitly displays the candidate version (from unstable) it is
potentially confusing to display another version's changelog.  It may
however be reasonable to change this line to display the actual
version being shown:

i    --\ apt 0.8.16~exp13

I will leave this bug open to track the discrepency.

To view the changelog for a particular version you should be on a line
such as these:

changelog of a non-candidate version if you specifically request the
version:

$ aptitude changelog apt/experimental
Get: Changelog of apt
apt (0.8.16~exp13) experimental; urgency=low
...

For a not-installed package there is only the candidate changelog
available.  To default to showing the changelog of an installed
version would be inconsistent between installed/not-installed
packages, makes it more difficult to retrieve the candidate changelog,
and is of questionable utility since the candidate changelog will
contain all entries from the installed version anyway.


Regards

#593248#24
Date:
2014-03-29 10:06:02 UTC
From:
To:
Hi all,

I can only second this request - I have already been confused multiple
times by aptitude showing some version numbers in the first line of the
package view, which have nothing to do with the version of the package
that's shown below. Especially when I have testing, unstable and
experimental in my sources, this gets very confusing.

Kind regards
Ralf

#593248#29
Date:
2015-09-25 11:25:10 UTC
From:
To:
Hi all,

attached you can find a screenshot of aptitude showing some version of
some package. I wish you good luck trying to figure out which version it
is actually showing. Hint: It's not "2.5.4", even saw it says so *twice*
in the title...

Kind regards,
Ralf

#593248#34
Date:
2015-09-25 11:38:08 UTC
From:
To:
Hi Ralf,

Ralf Jung wrote:

The dependencies shown are clearly those of apt-file from experimental
as it depends on apt >= 1.1~.

But IIRC the two versions shown in the upper right corner are the
installed and the to-be-installed version. Which IMHO is correct, but
admittedly confusing.

Maybe those two versions in this view should be prefixed with
"Installed:" and "Available:" and maybe complemented with a third
version number prefixed with "Shown:".

		Regards, Axel

#593248#39
Date:
2015-09-25 11:53:05 UTC
From:
To:
Hi,

You won the prize ;-)
But, seriously, I hope you agree that deducing the current version this
way is not all that great. I'm sure I can find packages where even you
will have a hard time figuring it out^^.

I agree with the installed version. I'm not so sure about the
to-be-installed one, why should that be so tremendously important? I can
also see that when I scroll all the way down to the list of all
versions. But, anyway, there's enough place for that on most screens.

Maybe the shown version should be displayed right after the package
name, "apt-file 3.0~exp". The two other version numbers should somehow
be explained, I agree - possibly with a short a text as possible. Maybe
"Cur" and "New" or so? Also, if they are the same, IMHO showing both is
totally not necessary.

Kind regards,
Ralf