Your message dated Thu, 26 Mar 2015 10:28:20 +0100
with message-id <20150326092820.GA17955@crossbow>
and subject line Re: Bug#781203: cmdline API breakage -- "E: Command line
option --installed is not understood"
has caused the Debian Bug report #781203,
regarding cmdline API breakage -- "E: Command line option --installed is not
understood"
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
781203: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781203
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apt
Version: 1.0.9.7
Severity: important
File: /usr/bin/apt-cache
I just have discovered that our scripts broke on jessie because of now
--installed apparently is not supported, although still referred to in the
manpage and changelog doesn't point to any deprecation. So I just assume that
it is a bug: this functionality works on wheezy but not on jessie
$> apt-cache search --installed xserver
E: Command line option --installed is not understood
$> man apt-cache | grep -A3 -e --installed
--installed
Limit the output of depends and rdepends to packages which are
currently installed. Configuration Item: APT::Cache::Installed.
$> schroot -c wheezy-i386 -- apt-cache search --installed xserver | head
glx-diversions - prepare for using accelerated GLX implementations from GPU
vendors
xserver-xorg-video-ivtv - X.Org X server -- IVTV display driver
xserver-xorg-video-ivtv-dbg - X.Org X server -- IVTV display driver (debug
symbols)
...
If fix is trivial (or not ;) ) it would be great if it was fixed for
jessie to come
-- Package-specific info:
-- /etc/apt/preferences --
Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 900
Package: *
Pin: release o=Debian,a=testing-proposed-updates
Pin-Priority: 991
Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 600
Package: *
Pin: release o=Debian,a=experimental
Pin-Priority: 300
Package: *
Pin: release o=Debian-Kernel archive,a=kernel-dists-trunk
Pin-Priority: 200
Package: *
Pin: release o=rumba
Pin-Priority: 310
Package: *
Pin: release c=*,o=Debian
Pin-Priority: 100
Package: *
Pin: release o=Ubuntu
Pin-Priority: 50
-- (/etc/apt/sources.list present, but not submitted) --
-- System Information:
Debian Release: 8.0
APT prefers testing
APT policy: (900, 'testing'), (600, 'unstable'), (300, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.17-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages apt depends on:
ii debian-archive-keyring 2014.3
ii gnupg 1.4.18-7
ii libapt-pkg4.12 1.0.9.7
ii libc6 2.19-15
ii libgcc1 1:4.9.2-10
ii libstdc++6 4.9.2-10
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none>
ii aptitude 0.6.11-1+b1
ii dpkg-dev 1.17.24
ii python-apt 0.9.3.11
ii synaptic 0.81.2
-- no debconf information
--- End Message ---
--- Begin Message ---
On Wed, Mar 25, 2015 at 08:04:24PM -0400, Yaroslav Halchenko wrote:
> I just have discovered that our scripts broke on jessie because of now
> --installed apparently is not supported, although still referred to in the
> manpage and changelog doesn't point to any deprecation. So I just assume that
> it is a bug: this functionality works on wheezy but not on jessie
>
> $> apt-cache search --installed xserver
> E: Command line option --installed is not understood
--installed is still supported, but only by the commands which actually
support it (which is just depends/rdepends at the moment).
Accepting options on all commands even through they aren't understood
was deemed confusing, if not downright dangerous: Just look at the
output you provided… I doubt you have all (potentially even any)
package installed which was listed in your wheezy-chroot.
Now, imagine I come along and actually implement support for this flag:
That will drastically change the behavior and might silently break your
script until you figure out that apt now does what you asked it to do…
So the fix is indeed simple and can be applied for any Debian release:
Please fix your script. ;)
Note: It sounds like we are talking about your own local script hence
this blant suggestion. If this script is packaged please report a bug
there and tell the developer to talk to us. We can reactivate silent
acceptance if need be, we did it before e.g. with build-dep -f and
sbuild. I just want to avoid watering down this check too much if there
isn't a good reason for it.
Best regards
David Kalnischkies
signature.asc
Description: Digital signature
--- End Message ---