On Mon, Sep 18, 2006 at 09:31:15PM -0400, Chris Hanson wrote:
> Bill Allombert wrote:
> 
> > Yes, I know, this is why I wrote exactly what command I was using.
> > I ddes not occur if you omit a single package.
> 
> This is very strange and I doubt it has anything to do with mit-scheme.
>  If you look at the maintainer scripts, you'll see that the code to
> manipulate the emacs files is boilerplate, automatically generated by
> debhelper.  The mit-scheme package doesn't do any explicit management of
> this file.

It sure does, the source files include the files
debian/mit-scheme.emacsen-install  
debian/mit-scheme.emacsen-startup
debian/mit-scheme.emacsen-remove

This last file get copied to 
/usr/lib/emacsen-common/packages/remove/mit-scheme:
which is the one to error out.

This file do:

if [ ${FLAVOR} != emacs ]; then
    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
    rm -f ${ELCDIR}/*.elc
    rmdir --ignore-fail-on-non-empty ${ELCDIR}
fi

However the rmdir line break the idempotence of the script because
${ELCDIR} will not exist in the second run, and rmdir will error 
out.

Depending whether emacs21-nox prerm is run after mit-scheme prerm,
the script remove/mit-scheme is run one or twice, which explains
the discrepancy.

I would sugget you change the line
if [ ${FLAVOR} != emacs ]; then 
to
if [ ${FLAVOR} != emacs ] && [ -d "${ELCDIR}"]; then

Cheers,
Bill.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to