Karl Ramm wrote:
> Just to not leave this hanging, we are currently dithering over splitting
> out the configuration gunk into a separate package vs. trying to figure out
> in the purge script whether we're the last one out.
> 
> (also I think it may be a bug that dpkg lets you purge only one instance of a
> multiarch package, but I'll bet it's a bug that we have to live with)
> 
> kcr

Hi Karl,

You can use the "DPKG_MAINTSCRIPT_PACKAGE_REFCOUNT" variable in the
maintainer script to tell whether or not to purge the file - it requires
dpkg (>= 1.17.2)[1][2].

~Niels

[1]:
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

[2] The commit adding the variable:
http://anonscm.debian.org/gitweb/?p=dpkg/dpkg.git;a=commitdiff;h=8fe6910ed0a87f1233fae933679373866183596f


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