reopen 535364
thanks
On Thu, Jul 02, 2009 at 11:42:43AM +1200, Francois Marier wrote:
> Hi Filippo,
>
> On 2009-07-02 at 00:46:42, Filippo Giunchedi wrote:
> > in config file /etc/apt/apt.conf.d/90debsums there's a syntax error of
> > trailing :: after DPkg::Post-Invoke, trivial patch:
>
> I don't think that this is a syntax error, have a look at the manpage for
> apt.conf(5):
>
> All of the APT tools take a -o option which allows an arbitrary
> configuration directive to be specified on the command line. The
> syntax is a full option name (APT::Get::Assume-Yes for instance)
> followed by an equals sign then the new value of the option. Lists
> can be appended too by adding a trailing :: to the list name.
That's right, but it is referring to either trailing :: or {} (which gives
implicit ::), in other words:
$ cat 90debsums
DPkg::Post-Invoke:: { "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums
--generate=nocheck -sp /var/cache/apt/archives; fi"; };
$ apt-config dump | grep -i debsums
DPkg::Post-Invoke:::: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums
--generate=nocheck -sp /var/cache/apt/archives; fi";
notice the ::::
if you either remove {} or :: it correctly lists a single ::
$ cat 90debsums
DPkg::Post-Invoke { "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums
--generate=nocheck -sp /var/cache/apt/archives; fi"; };
$ apt-config dump | grep -i debsums
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums
--generate=nocheck -sp /var/cache/apt/archives; fi";
$ cat 90debsums
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums
--generate=nocheck -sp /var/cache/apt/archives; fi";
go...@clamp:/etc/apt/apt.conf.d$ apt-config dump | grep -i debsums
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums
--generate=nocheck -sp /var/cache/apt/archives; fi";
whether the apt parser doesn't barf on this is another matter :)
filippo
--
Filippo Giunchedi - http://esaurito.net - 0x6B79D401
Endian little hate we
-- Anonymous (?)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]