[debhelper-devel] Bug#736896: Bug#736896: debhelper: please check for emacs-package-install before using it

Paul Wise pabs at debian.org
Thu Jan 30 05:27:16 UTC 2014


On Wed, 2014-01-29 at 14:25 -0400, Joey Hess wrote:

> Doesn't this have the potential to run the install stuff and later not
> run the remove stuff, and leave cruft on the system?

My patch had a bug in the prerm-emacsen autoscript, I've fixed this in
the attached patch.

The emacsen-common postrm cleans up all of /var/lib/emacsen-common so
that purge time for that would be the very latest cruft could hang
around for.

The situation right now is that if you remove emacsen-common before
dictionaries-common, cruft is left behind in /var/lib/emacsen-common.
Checking that emacsen-common is installed will not change this.

As an aside, right now when installing dictionaries-common before
emacsen-common, the emacsen-common state directory doesn't think
dictionaries-common is installed, you have to reinstall
dictionaries-common for it to get registered.

I think maybe this emacsen stuff should be replaced by dpkg triggers?

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Check-for-emacs-package-install-before-using-it.patch
Type: text/x-patch
Size: 1931 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20140130/ba563417/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20140130/ba563417/attachment-0001.sig>


More information about the debhelper-devel mailing list