annotate debian/preinst @ 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 5ec39beae9c5
children b8a73c90bfde
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
1 #!/bin/sh
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
2 # $Id: preinst 459 2003-02-22 21:54:34Z godisch $
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
3
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
4 set -e
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
5
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
6 if [ "$1" = install -o "$1" = upgrade ]; then
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
7 # this directory may still exist because of old lock files,
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
8 # make sure the symlink can be installed
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
9 if [ -d /var/spool/noffle/lock ]; then
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
10 if [ -d /var/lock/noffle ]; then
312
85bf9f705e70 [svn] minor code cleanup
godisch
parents: 301
diff changeset
11 rm -rf /var/spool/noffle/lock
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
12 else
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
13 mv /var/spool/noffle/lock /var/lock/noffle || :
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
14 fi
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
15 fi
324
5ec39beae9c5 [svn] cleanup
godisch
parents: 312
diff changeset
16 fi
301
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
17
3b5b7f3fd71f [svn] initial debian/ upload
godisch
parents:
diff changeset
18 exit 0