Hi Giuseppe,

On Sun, Jul 22, 2012 at 11:29:41PM +0200, Giuseppe Sacco wrote:
> Hi all,
> it seems to me that ucf cannot manage a "shared" conffile, so I really think
> the best solution would be to have a separate package that only include that
> contain file.
> 
> Is there anything against this solution?

I don't know if you'll have time to work on this before the jessie freeze, but
if not, you could use the new "DPKG_MAINTSCRIPT_PACKAGE_REFCOUNT" variable,
which was added to dpkg after the last discussion in this buglog.

It requires dpkg (>= 1.17.2). From the dpkg changelog:

dpkg/1.17.2 changelog:
  * Pass the package reference count (i.e. number of present instances)
    to maintainer scripts via the new variable
    DPKG_MAINTSCRIPT_PACKAGE_REFCOUNT.
    Closes: #681370

http://anonscm.debian.org/gitweb/?p=dpkg/dpkg.git;a=commitdiff;h=8fe6910ed0a87f1233fae933679373866183596f


Checking this variable, and only purging when the last package is removed, is
better than removing multi-arch support.

A random example on the DPKG_MAINTSCRIPT_PACKAGE_REFCOUNT usage (from hesiod):

https://github.com/achernya/hesiod/commit/377d59c98993a35e3d42661a504f892e394a8f70


Cheers,

Ivo


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

Reply via email to