[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#131779: apt: Have apt-get print the full version for updates and installs



Package: apt
Version: 0.5.4
Severity: wishlist
Tags: patch

Quite a while ago I wanted to ability to show the versions of packages
as they get upgraded.  It makes a great deal of difference to me if a
package is updating from 1-3 to 1-4 vrs 1-3 to 2-1.  The attached patch
provides an option to print verbose versions on installs or upgrades.
It uses the command line option -V or --verbose-versions or the config
item APT::Get::Show-Versions.  I have been running this patch for
almost a year without any problems.

The output of an upgrade looks like this:

----- Begin upgrade -----
The following packages have been kept back
   apache-dev (1.3.22-2 => 1.3.22-6)
The following packages will be upgraded
   dmalloc (4.8.2-1 => 4.8.2-2)
   emacsen-common (1.4.13 => 1.4.14)
----- End upgrade -----

And the output for a new install looks like this:

----- Begin new install -----
The following extra packages will be installed:
	libxerces-java (1.4.3-1)
The following NEW packages will be installed:
   tomcat (3.3a-1)
----- End new install -----

There are a couple places I couldn't figure out how to get the version.
There are two lines in ShowEssential() and one in TryToInstall() that are
commented out and end with three question marks.  

If you have any questions or comments please let me know.

Thanks for the awesome program!

Omen

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux frenzy 2.4.17+affinity #1 SMP Thu Jan 24 14:16:34 EST 2002 i686
Locale: LANG=C, LC_CTYPE=

Versions of packages apt depends on:
ii  libc6                         2.2.5-1    GNU C Library: Shared libraries an
ii  libstdc++2.10-glibc2.2        1:2.95.4-2 The GNU stdc++ library




Reply to: