view debian/postrm @ 390:2ad4c1c97734 noffle

[svn] * src/client.c: Return correct status from Client_postArt() and add function comment detailing what return code should be, because it's not obvious that the return code should report success when the posting failed for reasons other than connection problems. This should fix problem with failing posting stopping fetches. Thanks to Dan Jacobson for spotting this. * src/client.c: Fix problemette with filter discards not updating remote group article count and so the overview being refetched until and article appears that doesn't fall foul of the filter and thus does update the remove group 'next article' marker. Thanks to Dan Jacobson for spotting this. * src/content.c: Don't be fooled into thinking a filename starting ".." is just "..". * src/outgoing.c: Don't assume "." and ".." are the first files returned from readdir(). Thanks to Andreas Happe for spotting this. * src/noffle.c: Update online help to include 'm' group posting status. * src/server.c: Move incorrect updating of server.grp in doGrp() which was causing doGrp() to not retrieve remote article details when in online mode. Thanks to Miernik and Andreas Happe for reporting the problem.
author bears
date Thu, 22 May 2003 10:04:38 +0100
parents c36eb2596531
children 794030e45053
line wrap: on
line source

#!/bin/sh
# $Id: postrm 460 2003-02-23 15:16:46Z godisch $

set -e
. /usr/share/debconf/confmodule
db_version 2.0

server_config=/etc/news/noffle.conf
debian_config=/etc/default/noffle

if [ "$1" = remove -o "$1" = purge ]; then
	rm -f /usr/share/emacs/site-lisp/gnus/noffle.elc
	rm -rf /var/lock/noffle
fi

if [ "$1" = purge ]; then
	update-inetd --remove "/usr/bin/noffle -r"
	update-rc.d noffle remove > /dev/null
	rm -f /etc/noffle.conf /etc/noffle.conf.old \
		$server_config $server_config.old \
		$debian_config $debian_config.old
	rm -rf /etc/noffle /var/spool/noffle
	db_purge
fi

db_stop
exit 0