On Fri, Jun 15, 2001 at 10:13:53AM -0400, Richard A Nelson wrote:
> > Ah, very good point. Why not simply add in the purge section a block
> > around it which says:
> >
> > if ! [ -f <some file in the .deb which characterises the sendmail(-tls) packages> ]
> > then
> > delete a lot of files
> > fi
>
> Because I have to allow for the user switching from non-tls to tls *OR*
> from tls to non-tls. The *only* differences in the contents of the two
> packages are:
Exactly, so the postrm which is identical in both packages will say:
if [ "$1' = purge ]; then
if ! [ -f /usr/lib/sm.bin/sendmail ]; then
# We're *really* purging; neither sendmail nor sendmail-tls
# is currently installed
<delete a lot of files>
fi
fi
Then if one of them is installed, purging the other will not actually
do anything dangerous, as /usr/lib/sm.bin/sendmail will be present on
the system (it's in both packages).
Julian
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
Debian GNU/Linux Developer, see http://people.debian.org/~jdg
Donate free food to the world's hungry: see http://www.thehungersite.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]