[EMAIL PROTECTED](Daniel Burrows) 14.06.06 19:46
> As I understand it, this is a feature request that "aptitude show"
>should display the currently installed version by default?
Too, yes.
But:
1st.
At least it would be required that "aptitude show" does not
declare the first found package as "State:installed"!
That seems to be a bug because when one version is installed,
"aptitude -v show" indicates all versions as "installed".
2nd
If an unknown parameter like "-t " is given, aptitude should
give a warning like "ignored parameter '-t testing'"
and not silently ignore it.
i would expect that
aptitude -t testing backupninja
would show the "testeing" version
and
aptitude -t stable backupninja
would show the "stable" version.
or it should generate a warning or error.
3rd (maybe needs discussion)
If for an uninstalled package is asked, it should reply with the
version which would be installed by default as defined
in
~# cat /etc/apt/apt.conf | grep -v "^//"
APT::Architecture "i386";
APT::Default-Release "stable";
APT::Cache-Limit 16777216;
If the package is already installed, it should
show the installed version, not that versions that happens
to be the that first in the package list.
0th
The first easiest step could be:
remove the line " State:" line from Aptitude show output,
as there is always the same for all versions of a package.
---------
I thought "aptitude show" was an replacement for
"apt-cache policy".
~# apt-cache policy aptitude
aptitude:
Installed: 0.2.15.9-2
Candidate: 0.2.15.9-2
Version Table:
0.4.1-1.1 0
500 http://ftp.de.debian.org unstable/main Packages
*** 0.2.15.9-2 0
...
~# apt-cache policy backupninja
backupninja:
Installed: 0.5-3sarge1
Candidate: 0.5-3sarge1
Version Table:
0.9.3-6 0
500 http://ftp.de.debian.org unstable/main Packages
*** 0.5-3sarge1 0
...
~# aptitude show backupninja
Package: backupninja
*State: installed*
Automatically installed: no
*Version: 0.9.3-6*
Priority: optional
Section: admin
That's wrong!
Backupninja IS installed, but not with version 0.9!
---------------------------------------
Here a step by step full log:
linux:~# aptitude show cadaver
Package: cadaver
State: not installed
Version: 0.22.2-1.1
Priority: optional
Section: web
Maintainer: Bernd Eckenfels <[EMAIL PROTECTED]>
Uncompressed Size: 258k
Depends: libc6 (>= 2.3.2.ds1-21), libncurses5 (>= 5.4-5), libreadline5, libxml2
(>=
2.6.20), zlib1g (>= 1:1.2.1)
Description: command-line client for WebDAV server
Useful for WebDAV server testing and scripting. Works like command line FTP
clients.
Due to licensing issues (conflict between GPL and OpenSSL) this package does
not provide
SSL (HTTPS) support, for now. GNU TLS Porters welcome.
Briefly: WebDAV stands for "Web-based Distributed Authoring and Versioning".
It is a set
of extensions to the HTTP protocol which allows users to collaboratively edit
and manage
files on remote web servers.
linux:~# aptitude -v show cadaver
Package: cadaver
State: not installed
Version: 0.22.2-1.1
Priority: optional
Section: web
Maintainer: Bernd Eckenfels <[EMAIL PROTECTED]>
Uncompressed Size: 258k
Architecture: i386
Compressed Size: 98.9k
Filename: pool/main/c/cadaver/cadaver_0.22.2-1.1_i386.deb
MD5sum: 22f30dabd19566f2555c2d2c8650b078
Archive: unstable
Depends: libc6 (>= 2.3.2.ds1-21), libncurses5 (>= 5.4-5), libreadline5, libxml2
(>=
2.6.20), zlib1g (>= 1:1.2.1)
Description: command-line client for WebDAV server
Useful for WebDAV server testing and scripting. Works like command line FTP
clients.
Due to licensing issues (conflict between GPL and OpenSSL) this package does
not provide
SSL (HTTPS) support, for now. GNU TLS Porters welcome.
Briefly: WebDAV stands for "Web-based Distributed Authoring and Versioning".
It is a set
of extensions to the HTTP protocol which allows users to collaboratively edit
and manage
files on remote web servers.
Package: cadaver
State: not installed
Version: 0.22.2-1
Priority: optional
Section: web
Maintainer: Bernd Eckenfels <[EMAIL PROTECTED]>
Uncompressed Size: 315k
Architecture: i386
Compressed Size: 134k
Filename: pool/main/c/cadaver/cadaver_0.22.2-1_i386.deb
MD5sum: 245f72ba32095333c2cb09444d968330
Archive: stable, stable, stable, stable
Depends: libc6 (>= 2.3.2.ds1-4), libncurses5 (>= 5.4-1), libreadline4 (>= 4.3-1)
Description: command-line client for WebDAV server
Useful for WebDAV server testing and scripting. Works like command line FTP
clients.
Due to licensing issues (conflict between GPL and OpenSSL) this package does
not provide
SSL (HTTPS) support, for now. GNU TLS Porters welcome.
Briefly: WebDAV stands for "Web-based Distributed Authoring and Versioning".
It is a set
of extensions to the HTTP protocol which allows users to collaboratively edit
and manage
files on remote web servers.
linux:~# apt-cache policy cadaver
cadaver:
Installed: (none)
Candidate: 0.22.2-1
Version Table:
0.22.2-1.1 0
500 http://ftp.de.debian.org unstable/main Packages
0.22.2-1 0
990 http://ftp.de.debian.org sarge/main Packages
990 ftp://ftp.debian.org sarge/main Packages
990 ftp://ftp.debian.org stable/main Packages
990 http://ftp.de.debian.org stable/main Packages
c
linux:~#
linux:~# aptitude install cadaver
Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
cadaver
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 134kB of archives. After unpacking 315kB will be used.
Writing extended state information... Done
Get:1 http://ftp.de.debian.org sarge/main cadaver 0.22.2-1 [134kB]
Fetched 134kB in 0s (245kB/s)
Selecting previously deselected package cadaver.
(Reading database ... 23628 files and directories currently installed.)
Unpacking cadaver (from .../cadaver_0.22.2-1_i386.deb) ...
Setting up cadaver (0.22.2-1) ...
Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
linux:~# aptitude show cadaver
Package: cadaver
State: installed
Automatically installed: no
Version: 0.22.2-1.1 <-----this version is *not* "installed"!
Priority: optional
Section: web
Maintainer: Bernd Eckenfels <[EMAIL PROTECTED]>
Uncompressed Size: 258k
Depends: libc6 (>= 2.3.2.ds1-21), libncurses5 (>= 5.4-5), libreadline5, libxml2
(>=
2.6.20), zlib1g (>= 1:1.2.1)
Description: command-line client for WebDAV server
Useful for WebDAV server testing and scripting. Works like command line FTP
clients.
Due to licensing issues (conflict between GPL and OpenSSL) this package does
not provide
SSL (HTTPS) support, for now. GNU TLS Porters welcome.
Briefly: WebDAV stands for "Web-based Distributed Authoring and Versioning".
It is a set
of extensions to the HTTP protocol which allows users to collaboratively edit
and manage
files on remote web servers.
linux:~# aptitude -v show cadaver
Package: cadaver
State: installed <------ -v claims both (all?) version beeing installed
Automatically installed: no
Version: 0.22.2-1.1
Priority: optional
Section: web
Maintainer: Bernd Eckenfels <[EMAIL PROTECTED]>
Uncompressed Size: 258k
Architecture: i386
Compressed Size: 98.9k
Filename: pool/main/c/cadaver/cadaver_0.22.2-1.1_i386.deb
MD5sum: 22f30dabd19566f2555c2d2c8650b078
Archive: unstable
Depends: libc6 (>= 2.3.2.ds1-21), libncurses5 (>= 5.4-5), libreadline5, libxml2
(>=
2.6.20), zlib1g (>= 1:1.2.1)
Description: command-line client for WebDAV server
Useful for WebDAV server testing and scripting. Works like command line FTP
clients.
Due to licensing issues (conflict between GPL and OpenSSL) this package does
not provide
SSL (HTTPS) support, for now. GNU TLS Porters welcome.
Briefly: WebDAV stands for "Web-based Distributed Authoring and Versioning".
It is a set
of extensions to the HTTP protocol which allows users to collaboratively edit
and manage
files on remote web servers.
Package: cadaver
State: installed <------ claims both version beeing installed
Automatically installed: no
Version: 0.22.2-1
Priority: optional
Section: web
Maintainer: Bernd Eckenfels <[EMAIL PROTECTED]>
Uncompressed Size: 315k
Architecture: i386
Compressed Size: 134k
Filename: pool/main/c/cadaver/cadaver_0.22.2-1_i386.deb
MD5sum: 245f72ba32095333c2cb09444d968330
Archive: stable, stable, stable, stable, now
Depends: libc6 (>= 2.3.2.ds1-4), libncurses5 (>= 5.4-1), libreadline4 (>= 4.3-1)
Description: command-line client for WebDAV server
Useful for WebDAV server testing and scripting. Works like command line FTP
clients.
Due to licensing issues (conflict between GPL and OpenSSL) this package does
not provide
SSL (HTTPS) support, for now. GNU TLS Porters welcome.
Briefly: WebDAV stands for "Web-based Distributed Authoring and Versioning".
It is a set
of extensions to the HTTP protocol which allows users to collaboratively edit
and manage
files on remote web servers.
This looks like being a bug in handling the installed state?
Rainer
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]