Debian Bug report logs - #629590
aptitude: Fails to obey '-o "#clear DPkg::Pre-Install-Pkgs;"'

version graph

Package: aptitude; Maintainer for aptitude is Aptitude Development Team <[email protected]>; Source for aptitude is src:aptitude (PTS, buildd, popcon).

Reported by: Nick Phillips <[email protected]>

Date: Tue, 7 Jun 2011 21:57:01 UTC

Severity: wishlist

Tags: moreinfo

Found in versions aptitude/0.6.3-2, aptitude/0.6.3-3.2, aptitude/0.6.4-1.2

Fix blocked by 656844: apt: support #clear directive in CommandLine parser

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#629590: aptitude: Fails to obey '-o "#clear DPkg::Pre-Install-Pkgs;"'
Reply-To: "Manuel A. Fernandez Montecelo" <[email protected]>, [email protected]
Resent-From: "Manuel A. Fernandez Montecelo" <[email protected]>
Resent-To: [email protected]
Resent-CC: Aptitude Development Team <[email protected]>
X-Loop: [email protected]
Resent-Date: Thu, 05 May 2016 10:51:02 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 629590
X-Debian-PR-Package: aptitude
X-Debian-PR-Keywords: 
X-Debian-PR-Source: aptitude
Received: via spool by [email protected] id=B629590.146244530029055
          (code B ref 629590); Thu, 05 May 2016 10:51:02 +0000
Received: (at 629590) by bugs.debian.org; 5 May 2016 10:48:20 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
	(2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.4 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FAKE_REPLY_C,FREEMAIL_FROM,MURPHY_DRUGS_REL8,
	RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no autolearn_force=no
	version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 36; hammy, 150; neutral, 182; spammy,
	0. spammytokens: hammytokens:0.000-+--gitweb, 0.000-+--UD:anonscm.debian.org,
	0.000-+--sk:anonscm, 0.000-+--anonscm.debian.org, 0.000-+--anonscmdebianorg
Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230])
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1ayGpQ-0007YJ-AC
	for [email protected]; Thu, 05 May 2016 10:48:20 +0000
Received: by mail-wm0-x230.google.com with SMTP id g17so20873272wme.1
        for <[email protected]>; Thu, 05 May 2016 03:48:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:subject:message-id:mime-version:content-disposition
         :in-reply-to:user-agent;
        bh=ng1T9hH2KW/FgKSmgBWpcLjjWMa7jMdymvtyBvuTwks=;
        b=u8MN3xk16aGHz4mHMnXL7GsMyjlNor9/qsnTZ9I/EKju9/5QuCoUHgk3GKiTELBFXZ
         WRsoEP7pla8jiy8MStZdOwn95iXXz/sh34f7mkU0Mn91xQe2eqkFaztK0YNe5of2p/KR
         44oQ4Jgbvex39rwcPZs1Ldst39/XUElzMJpONIhQsRXrDs5MUiI1HvM20MrB0rTFlNFX
         IukGlLkGu95yZvEyqP3KBRbS/g+81IAgznCZqr2ACYvvvEKFJb5vV3I/ES5cxF6bmZww
         x9n4tjHIXumuNShLZSItwBK0HYfORO+3r+L4YYk4sci0XRX0ql602ww90IG8eJjwa3oI
         0wMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:subject:message-id:mime-version
         :content-disposition:in-reply-to:user-agent;
        bh=ng1T9hH2KW/FgKSmgBWpcLjjWMa7jMdymvtyBvuTwks=;
        b=XL43bxoBVsRLtQey+oG068goycLU+NLs7bf1u/WBG0eRbYCOqu/3XtIWBC26C/iJUW
         dGf6hzVhmd6SwhMu+xGSdLXQWy64lGCQkzv7/rgSFIeqzXlIlUL7lGczxXZ4vn3Unwax
         0k9hr00oJqCie8Fi4jzrRWzyDFsZXmx5QeyPwNnk9ZJxO5+toCLhdGM57POFhp+Fodz3
         FEGGfBa48f+Zx0q9o/Wpv5AMW1Xla6s55fWyjHBK8sBgLfvYedk0PP6vBkWy8O7nvpUB
         1yVC1K6Yjz3FnPT0ynh3eIe9tCjSYE+9/KykZWqDcCnCv/qkMiNxCUzKbkXSLywj4s4h
         TO5Q==
X-Gm-Message-State: AOPr4FXNuew1X6ojW+KOVqPem77rhZ5bHbfpWkgRw5YxutP5+qgwrR+p69+bOLfWMLmF8Q==
X-Received: by 10.194.116.103 with SMTP id jv7mr14426422wjb.22.1462445292788;
        Thu, 05 May 2016 03:48:12 -0700 (PDT)
Received: from localhost (109-170-218-147.xdsl.murphx.net. [109.170.218.147])
        by smtp.gmail.com with ESMTPSA id n66sm2587594wmn.7.2016.05.05.03.48.10
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 05 May 2016 03:48:10 -0700 (PDT)
Date: Thu, 5 May 2016 11:48:09 +0100
From: "Manuel A. Fernandez Montecelo" <[email protected]>
To: Nick Phillips <[email protected]>, [email protected],
	[email protected]
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Disposition: inline
In-Reply-To: <86AF3E8334A96245BD3AF8FD00F047D0C48BFF@ITS-EXM-P07.registry.otago.ac.nz>
 <CAN3veRdQrRwQQLTRu4dP6TNbKUdRkY40bFbk9eycLyH6BGJWow@mail.gmail.com>
 <[email protected]>
User-Agent: Mutt/1.6.0 (2016-04-01)
Control: severity -1 wishlist
Control: tags -1 + moreinfo


Hi Nick,

2011-06-07 22:51 Nick Phillips:
>Package: aptitude
>Version: 0.6.3-3.2
>Severity: normal
>
>The command line:
>apt-get -q -y -o "#clear DPkg::Pre-Install-Pkgs;" install somepkg
>
>still causes dpkg-preconfigure to be used to preconfigure packages, when the line:
>DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
>
>is present in /etc/apt/apt.conf.d/70debconf
>
>
>The equivalent invocation of apt-get successfully inhibits the preconfiguration.
>I note that:
>apt-config -o "#clear DPkg::Pre-Install-Pkgs;" dump
>
>fails to parse the option and barfs, insisting that the option must contain an "=".
>Perhaps this is related?

As discussed in the bug submitted to apt (#656844), probably this never
worked, the syntax in config variables passed with command line and the
syntax in config files is different, and #clear has never been
supported.


From apt.conf:

   All of the APT tools take an -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. To
   append a new element to a list, add a trailing :: to the name of the
   list. (As you might suspect, the scope syntax can't be used on the
   command line.)

and DPkg::Pre-Install-Pkgs uses a "scope".


2012-01-22 09:19 Daniel Hartwig:
>
>I have submitted a patch to support this in libapt-pkg [1].

From the discussion in the bug report above, this is unlikely to happen,
at least with that patch.

One suggestion was to implement "--clear-option" instead.

However, if apt-* don't support this yet, I am not sure if aptitude
should, so this needs further consideration.


>Aptitude
>should soon make use of the same library to parse its command-line
>[2], which will resolve this issue.
>
>Otherwise, it is simple to implement the same patch is aptitude's
>current parser.
>
>[1] http://bugs.debian.org/656844
>[2] http://anonscm.debian.org/gitweb/?p=aptitude/aptitude.git;a=shortlog;h=refs/heads/wip-cmdline

This branch never came to be merged, so this doesn't apply now.


Cheers.
-- 
Manuel A. Fernandez Montecelo <[email protected]>

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Sun Sep 22 09:29:50 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.