Hi!

On Sun, 2012-10-07 at 00:05:30 +0200, Andreas Beckmann wrote:
> digging a little bit into dpkg's code I found this in configure.c
> 
> deferred_configure(pkg)
> {
> ...
>     for (conff = pkg->installed.conffiles; conff; conff = conff->next)
>         deferred_configure_conffile(pkg, conff);
> ...
> }
> 
> That acts on all conffiles known to the package, including those that
> are marked as obsolete. But if they are marked as obsolete *here*, they
> may have been overtaken by another package that is currently unpackaged,
> too, but not yet configured. In that case the current package will
> "consume" the .dpkg-new ffrom a different package.

Right!

> shouldn't the following change fix this by skipping obsolete conffiles?
> 
>     for (conff = pkg->installed.conffiles; conff; conff = conff->next)
>         if (!conff->obsolete)
>             deferred_configure_conffile(pkg, conff);

Something along those lines, yes.

> A quick test shows that this would work.

I've reviewed all other possible instances of this issue, and I've
found and fixed several others, doing some testing now, will consider
whether to include a fix for this for 1.16.9.

thanks,
guillem


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to