From: "Donnie Berkholz" <spyderous@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] RFC: extension of etc-update
Date: Tue, 10 Aug 2004 22:51:51 -0400 [thread overview]
Message-ID: <20040811.IRf.44677300@groupware.gentoo.org> (raw)
In-Reply-To: <20040810120404.GB1912@hydra.joerghoh.de>
Joerg Hoh (joerg@devone.org) wrote:
>
> On Tue, Aug 10, 2004 at 01:52:30PM +0200, Radoslaw Stachowiak wrote:
> >
> > it doesnt in proper way, because dispatch-conf does not store md5sums,
> > but uses /var/db/pkg data for its comparision. But using it (db) after
> > installation results in md5sum lost (only md5 sums of NEW version of
> > files are stored).
> >
> > So there are two ways to do it:
> > 1. store sums regardless of portage, and compare it after installation.
> > 2. maybe, instead of md5sum, simple comparision if mtime < ctime than
> > update is allowed would be fine?
> >
> > please comment about 2) because it would be trivial to implement it in
> > dispatch-conf.
>
> ctime vs mtime would be acceptable; if it is combined with the
> trivial-merge-approach, it's probably enough for most of the mentioned
> issues.
This still appears to have this problem, unless I missed it: What if the
default is exactly what a user wants in one version, then the default changes
in the next version? You assume an unmodified config file means the user
doesn't care what's in it.
But in this scenario, the file's MD5 would be unchanged from the initial
snapshot because the file is distributed as the user desires -- yet an update
wrongly overwrites this with a change that causes broken or unwanted results.
There should be at least an option to NOT do the MD5 checking you propose.
Thanks,
Donnie
--
Donnie Berkholz
Gentoo Linux
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2004-08-11 2:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-10 10:43 [gentoo-dev] RFC: extension of etc-update Joerg Hoh
2004-08-10 10:48 ` Guy Martin
2004-08-10 10:56 ` Mike Williams
2004-08-10 11:23 ` Joerg Hoh
2004-08-10 11:46 ` Paul de Vrieze
[not found] ` <d25519e90408100452548d6501@mail.gmail.com>
2004-08-10 12:04 ` Joerg Hoh
2004-08-10 12:11 ` Radoslaw Stachowiak
2004-08-11 20:55 ` [gentoo-dev] small dispatch-conf patch, WAS: " Radoslaw Stachowiak
2004-08-11 21:03 ` Paul de Vrieze
[not found] ` <d25519e9040811143258d8d8ef@mail.gmail.com>
[not found] ` <200408112338.13758.pauldv@gentoo.org>
2004-08-12 7:35 ` Radoslaw Stachowiak
2004-08-11 2:51 ` Donnie Berkholz [this message]
2004-08-11 10:35 ` [gentoo-dev] Re: RFC: " Duncan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040811.IRf.44677300@groupware.gentoo.org \
--to=spyderous@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox