[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#59218: marked as done (apt: flags don't override config file (ie, -u -y))



Your message dated Mon, 28 Feb 2000 12:20:23 -0700 (MST)
with message-id <Pine.LNX.3.96.1000228121848.19202B-100000@wakko.deltatee.com>
and subject line Bug#59218: apt: flags don't override config file (ie, -u -y)
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 28 Feb 2000 17:32:32 +0000
Received: (qmail 21913 invoked from network); 28 Feb 2000 17:32:30 -0000
Received: from arclab.static.golden.net (209.183.159.94)
  by master.debian.org with SMTP; 28 Feb 2000 17:32:30 -0000
Received: by arclab.static.golden.net
	via sendmail from stdin
	id <m12PU2v-001ADGC@arclab.static.golden.net> (Debian Smail3.2.0.102)
	for submit@bugs.debian.org; Mon, 28 Feb 2000 12:33:25 -0500 (EST) 
Message-Id: <m12PU2v-001ADGC@arclab.static.golden.net>
Date: Mon, 28 Feb 2000 12:33:25 -0500 (EST)
From: Jason Neudorf <jcjneudo@arclab.static.golden.net>
Subject: apt: flags don't override config file (ie, -u -y)
To: submit@bugs.debian.org
Bcc:
X-Mailer: bug 3.2.10

Package: apt
Version: 0.3.18
Severity: normal

I've been pointing my default "apt.conf" at a local distribution made by
"apt-move", and using a different one for actual updates.   It contains
lines like ` Download-Only "false"; `.  When I go to do something like:

    apt-get -u -s -c /work/etc/apt/bio-apt.conf upgrade
    
the line in the configuration file overrides the config file, and it looks
like it never happened.  This is unlike the man page, which says (at about
line 200, under OPTIONS) that you can override things.  Thus, things like this
can happen:

apt-get -u -s -c /work/etc/apt/bio-apt.conf install iraf
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  f2c iraf-common iraf-ibin iraf-noaobin 
  The following NEW packages will be installed:
    f2c iraf iraf-common iraf-ibin iraf-noaobin 
    0 packages upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
    Need to get 38.4MB of archives. After unpacking 111MB will be used.
    Do you want to continue? [Y/n] 
    Get:1 http://http.us.debian.org frozen/main f2c 19991025-1 [408kB]
    0% [1 f2c 1088/408kB 0%]
    
Granted, my "bio-apt.conf" configuration file is broken for having contained
a line with `Download-Only = "false"; `, but according to the manual, it should
have worked anyways.





-- System Information
Debian Release: 2.2
Kernel Version: Linux arc 2.2.14 #8 Tue Jan 4 23:08:31 EST 2000 i686 unknown

Versions of the packages apt depends on:
ii  libc6          2.1.3-5        GNU C Library: Shared libraries and Timezone
ii  libstdc++2.10  2.95.2-6       The GNU stdc++ library
---------------------------------------
Received: (at 59218-done) by bugs.debian.org; 28 Feb 2000 19:19:33 +0000
Received: (qmail 15808 invoked from network); 28 Feb 2000 19:19:33 -0000
Received: from wakko.powersurfr.com (HELO wakko.deltatee.com) (mail@24.108.53.97)
  by master.debian.org with SMTP; 28 Feb 2000 19:19:33 -0000
Received: from localhost (wakko.deltatee.com) [127.0.0.1] (jgg)
	by wakko.deltatee.com with smtp (Exim 2.11 #1)
	id 12PViR-00050O-00 (Debian); Mon, 28 Feb 2000 12:20:23 -0700
Date: Mon, 28 Feb 2000 12:20:23 -0700 (MST)
From: Jason Gunthorpe <jgg@ualberta.ca>
X-Sender: jgg@wakko.deltatee.com
To: Jason Neudorf <jcjneudo@arclab.static.golden.net>, 
    59218-done@bugs.debian.org
cc: APT Development Team <deity@lists.debian.org>
Subject: Re: Bug#59218: apt: flags don't override config file (ie, -u -y)
In-Reply-To: <m12PU2v-001ADGC@arclab.static.golden.net>
Message-ID: <Pine.LNX.3.96.1000228121848.19202B-100000@wakko.deltatee.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Mon, 28 Feb 2000, Jason Neudorf wrote:

> I've been pointing my default "apt.conf" at a local distribution made by
> "apt-move", and using a different one for actual updates.   It contains
> lines like ` Download-Only "false"; `.  When I go to do something like:
> 
>     apt-get -u -s -c /work/etc/apt/bio-apt.conf upgrade

Your order is wrong, the command line is processed in order of ocurrance,
so -u and -s are overridden by the options in the config file specified
by -c. Put the -c option first.

Jason


Reply to: