[Aptitude-devel] Bug#956390: aptitude -o complains about empty value
Dmitry Alexandrov
dag at gnui.org
Thu May 27 06:07:48 BST 2021
David Kalnischkies <david at kalnischkies.de> wrote:
> That said, it might make sense to be able to set an empty value from the cmdline, yes, but apt doesn't have a way for it either
It seems, that tools from apt package now (ver. 2.2.3) _do_ allow to unset an apt.conf(5) option by using `-o`:
$ apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 https://deb.debian.org/debian rc-buggy/main amd64 Packages
release o=Debian,a=experimental,n=experimental,l=Debian,c=main,b=amd64
origin deb.debian.org
990 https://deb.debian.org/debian sid/main amd64 Packages
release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=amd64
origin deb.debian.org
Pinned packages:
$ apt-cache -o APT::Default-Release='' policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 https://deb.debian.org/debian rc-buggy/main amd64 Packages
release o=Debian,a=experimental,n=experimental,l=Debian,c=main,b=amd64
origin deb.debian.org
500 https://deb.debian.org/debian sid/main amd64 Packages
release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=amd64
origin deb.debian.org
Pinned packages:
While aptitude(8) still complains about syntax:
$ aptitude -o APT::Default-Release='' show
-o requires an argument of the form key=value, got APT::Default-Release=
Should not it be brought into the line?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 247 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/aptitude-devel/attachments/20210527/d9c1c593/attachment.sig>
More information about the Aptitude-devel
mailing list