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

Bug#102609: marked as done (Configuration files: "Expert" and "beginner"-modes.)



Your message dated Sat, 1 Nov 2003 17:17:56 -0600 (CST)
with message-id <Pine.LNX.4.44.0311011717390.1157-100000@gradall.private.brainfood.com>
and subject line Bug#102609: Wanted: dpkg option to consider all confflies in .deb new
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.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 27 Jun 2001 20:18:38 +0000
>From andreas.krueger@lifenet.de Wed Jun 27 15:18:38 2001
Return-path: <andreas.krueger@lifenet.de>
Received: from cephyr.cid.net (mail.cid.net) [::ffff:212.172.21.2] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 15FLll-0004a6-00; Wed, 27 Jun 2001 15:18:37 -0500
Received: from mail.cid.net (lo-mail.cid.net) [212.172.21.3] (mail)
	by mail.cid.net (Exim 3.22) with esmtp
	id 15FLll-0007du-00; Wed, 27 Jun 2001 22:18:37 +0200
Received: from 193.159.52.238 for submit@bugs.debian.org
	by lo-mail.cid.net (Exim 3.22) with esmtp
	id 15FLlj-0007dh-00; Wed, 27 Jun 2001 22:18:36 +0200
Received: (2919 bytes) by schalom.credo.life.de
	via sendmail with P:stdio/R:inet_hosts/T:smtp
	(sender: <andreas.krueger@online.life.de>) 
	id <m15FLkm-001d5GC@schalom.credo.life.de>
	for submit@bugs.debian.org; Wed, 27 Jun 2001 22:17:36 +0200 (CEST)
	(Smail-3.2.0.111 2000-Feb-17 #2 built 2000-Aug-5)
From: andreas.krueger@lifenet.de (=?iso-8859-1?Q?Andreas_Kr=FCger?=)
Date: Wed, 27 Jun 2001 22:17:36 +0200
To: submit@bugs.debian.org
Subject: Configuration files: "Expert" and "beginner"-modes.
Message-ID: <20010627221736.A1307@schalom.credo.life.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.1.9i
Delivered-To: submit@bugs.debian.org

Package: dpkg
Version: 1.9.14
Severity: wishlist

Here are two quotes from the packaging manual, dealing with
configuration files:

> If neither the user nor the package maintainer has changed
> the file, it is left alone. If one or the other has
> changed their version, then the changed version is
> preferred - i.e., if the user edits their file, but the
> package maintainer doesn't ship a different version, the
> user's changes will stay, silently, but if the maintainer
> ships a new version and the user hasn't edited it the new
> version will be installed (with an informative
> message). If both have changed their version the user is
> prompted about the problem and must resolve the
> differences themselves.

> However, note that dpkg will not replace a conffile that
> was removed by the user (or by a script). This is
> necessary because with some programs a missing file
> produces an effect hard or impossible to achieve in
> another way, so that a missing file needs to be kept that
> way if the user did it.

(These quotes are from
/usr/share/doc/packaging-manual/packaging.html/ch-conffiles.html
as contained in the package packaging-manual, version
3.1.1.1)


I suggest, as a new feature, a distinction of "expert mode"
and "beginner's mode".


Plain dpkg continues to function as described above, which
is what I call "expert mode".


There is a command line switch added to dpkg, as well as an
option to /etc/dpkg/dpkg.cfg, either one of which would
switch dpkg to "beginner's mode".

In "beginner's mode", in short, we ask the users whether
they know what they have been doing to the configuration
files.

To spell this out, "beginner's mode" differs from "expert
mode" only in these two cases:

If the user has changed a configuration file, the changes
will not stay silently.  Instead, the user is informed about
the situation, along these lines: "You or a script have
changed the file foobar from an older version, while the
package maintainer ships that same older version."  The
process then suggests to keep the changed version, but
offers an option to go back to the package maintainer's
original.

Similarly, if a user has deleted a configuration file, the
package maintainer's file will not be dropped silently.
Instead, the user will be informed "You or a script have
deleted the configuration file foobar, which this package
would normally install."  The process then suggests to not
install this file, but gives the user an option to install
it anyway.



---------------------------------------
Received: (at 102609-done) by bugs.debian.org; 1 Nov 2003 23:18:15 +0000
>From doogie@debian.org Sat Nov 01 17:18:15 2003
Return-path: <doogie@debian.org>
Received: from brown.brainfood.com (gradall.private.brainfood.com) [146.82.138.61] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AG50Y-0005WS-00; Sat, 01 Nov 2003 17:18:15 -0600
Received: from localhost ([127.0.0.1] ident=adam)
	by gradall.private.brainfood.com with esmtp (Exim 3.36 #1 (Debian))
	id 1AG50H-0006uW-00; Sat, 01 Nov 2003 17:17:57 -0600
Date: Sat, 1 Nov 2003 17:17:56 -0600 (CST)
From: Adam Heath <doogie@debian.org>
X-X-Sender: adam@gradall.private.brainfood.com
To: Henning Makholm <henning@makholm.net>,  <102609-done@bugs.debian.org>
Subject: Re: Bug#102609: Wanted: dpkg option to consider all confflies in
 .deb new
In-Reply-To: <20031031155948.GA20131@henning.makholm.net>
Message-ID: <Pine.LNX.4.44.0311011717390.1157-100000@gradall.private.brainfood.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: 102609-done@bugs.debian.org
X-Spam-Status: No, hits=-6.7 required=4.0
	tests=BAYES_30,EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT
	version=2.53-bugs.debian.org_2003_11_1
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_1 (1.174.2.15-2003-03-30-exp)

On Fri, 31 Oct 2003, Henning Makholm wrote:

> It is hard to argue with a one-line "wontfix" tag, but FWIW I'll
> second the proposal in bug 102609. Perhaps it was ill received because
> of the "beginner" terminology, but I think that the proposed feature
> would sometimes be helpful even for people who know what they're
> doing.
>
> When one finds that one's attempt to hack some conffiles did not work,
> there is no really good way to get dpkg to restore them to the
> versions shipped in the .deb, unless one has been cautious enough to
> take backups of them oneself.
>
> I was in this situation recently - I tried reinstalling the original
> .deb, but dpkg just thought that since the md5sums in the "new" deb
> was identical to the ones in /var/lib/dpkg/info, it would not bother
> me with offering to install the ones in the package.

dpkg --force-confnew



Reply to: