Bug#935893: apt list/apt-key: Don't print warnings about script usage
Control: severity -1 wishlist
On Tue, Aug 27, 2019 at 01:05:19PM +0200, Christoph Berg wrote:
> Package: apt
> Version: 1.8.2
> Severity: normal
>
> Hi,
>
> there are several places where apt is IMHO overzealous in trying to
> teach the users in how to use it:
>
> $ apt list --upgradable > packages.list
>
> WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
>
> Yes, the interface might change in the future, but that's IMHO no
> reason to nag about that fact every time.
>
> The same happens in "really interactive" mode:
>
> $ apt list --upgradable | less
>
> WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
>
> Please just drop that warning. The program does work when invoked in
> these ways, and if I insist in writing bad shell scripts, it's not
> apt's responsibility to tell me about it.
We have to do _something_. apt is an integral part of the system,
and we want to be able to break things without breaking everybody's
system maintenance scripts.
If we remove like a space in apt-cache policy output, people get
mad. It's severily limiting us from doing anything useful on the
CLI UX.
--
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer i speak de, en
Reply to: