# We have to clean these up because the old package didn't. The info
# files were being removed in the postinst, not the prerm, and so
# install-info wasn't doing anything because the files weren't there..
for file in ${CRUFT_INFOFILES}
do
install-info --quiet --remove-exactly ${file} || true
done
for file in ${INFO_FILES}
do
install-info --quiet --section Emacs Emacs \
/usr/share/info/${INFO_SUBDIR}/${file}.gz || true
done
Perhaps there is no point in having calls to install-info in that script emacs23-common.postinst as they are being ignored anyway, and are just generating the warnings. Could just edit them out?
Further question is how to perform the same operation as "install-info --quiet --section Emacs Emacs \
/usr/share/info/${INFO_SUBDIR}/${file}.gz || true"
...but by using triggers.
I'm guessing from a quick browse of the dpkg-triggers-how article below, that files like
DEBIAN/triggers need adding into a package somewhere.
I confess to lots of guesswork in my comment here (please don't flame me) and
genuinely thank the package maintainers for making my favourite editor (emacs)
available in the latest release \o/
Just to illustrate what is in the current postinst script.
root@amd754n: /var/lib/ dpkg/info# grep -B5 -A5 install-info emacs23- common. postinst
CRUFT_INFOFILES ="ccmode emacs widget"
# We have to clean these up because the old package didn't. The info
# files were being removed in the postinst, not the prerm, and so
# install-info wasn't doing anything because the files weren't there..
for file in ${CRUFT_INFOFILES}
do
install-info --quiet --remove-exactly ${file} || true
done
for file in ${INFO_FILES} share/info/ ${INFO_ SUBDIR} /${file} .gz || true
do
install-info --quiet --section Emacs Emacs \
/usr/
done
Perhaps there is no point in having calls to install-info in that script emacs23- common. postinst as they are being ignored anyway, and are just generating the warnings. Could just edit them out?
Further question is how to perform the same operation as "install-info --quiet --section Emacs Emacs \ share/info/ ${INFO_ SUBDIR} /${file} .gz || true"
/usr/
...but by using triggers.
I'm guessing from a quick browse of the dpkg-triggers-how article below, that files like
DEBIAN/triggers need adding into a package somewhere.
Article Link: http:// www.seanius. net/blog/ 2009/09/ dpkg-triggers- howto/
I confess to lots of guesswork in my comment here (please don't flame me) and
genuinely thank the package maintainers for making my favourite editor (emacs)
available in the latest release \o/