Hi!

On Thu, 2005-09-01 at 16:33:09 +0100, Ian Jackson wrote:
> Ian Jackson writes ("Re: dpkg vanishing conffiles - more complex/complete 
> specification"):
> > New scheme:
> >  * During unpack, [...]
> 
> I have implemented this and tested it and it works for me.  It fixes
> the spurious conffile prompt I was seeing and appears to work
> otherwise.

> diff -ru orig/dpkg-1.13.11/src/remove.c dpkg-1.13.11/src/remove.c
> --- orig/dpkg-1.13.11/src/remove.c    2005-08-14 19:23:51.000000000 +0100
> +++ dpkg-1.13.11/src/remove.c 2005-09-01 12:50:29.000000000 +0100
> @@ -429,6 +429,11 @@
>      
>      for (conff= pkg->installed.conffiles; conff; conff= conff->next) {
>      static struct varbuf fnvb, removevb;
> +      if (conff->obsolete) {
> +     debug(dbg_conffdetail, "removal_bulk conffile obsolete %s",
> +           conff->name);
> +     continue;
> +      }
>        varbufreset(&fnvb);
>        r= conffderef(pkg, &fnvb, conff->name);
>        debug(dbg_conffdetail, "removal_bulk conffile `%s' (= `%s')",

This ‘continue’ there makes the obsolete conffile not be removed on
purge. Pushing a fix for 1.15.5.

regards,
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