]> Pileus Git - ~andy/fetchmail/commitdiff
Skip list subscriber counts.
authorMatthias Andree <matthias.andree@gmx.de>
Sun, 10 Jul 2005 22:13:39 +0000 (22:13 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Sun, 10 Jul 2005 22:13:39 +0000 (22:13 -0000)
Check for SVN errors.

svn path=/trunk/; revision=4108

dist-tools/getstats.py

index 9b18adef49e8cbc97c716e9aaae98b431a54203c..9a396fa8eaff129792c25709bfc04d9afa9c88a2 100755 (executable)
@@ -9,7 +9,9 @@ date = commands.getoutput("LC_TIME=C date -u")
 pid = os.getpid()
 # this is a fast variant using the base of the current working directory
 # (ignores uncommitted modifications)
-os.system("svn export -rBASE . /tmp/getstats.%d" % pid)
+if os.system("svn export -q -rBASE . /tmp/getstats.%d" % pid):
+    print "SVN FAILED"
+    os.exit(1)
 # this is a slower variant that may export the whole tree across the net
 #os.system("svn export -rCOMMITTED . /tmp/getstats.%d" % pid)
 ln = commands.getoutput("cat /tmp/getstats.%d/*.[chly] 2>/dev/null | wc -l" % pid)
@@ -18,8 +20,8 @@ vers = commands.getoutput("sed -n -e '/AC_INIT/s/AC_INIT(\[.*\],\[\\(.*\\)\])/\\
 print "fetchmail-" + vers + " (" + date + "), " + string.strip(ln) + " lines:"
 
 # Use local listsize command to grab list statistics
-friends = commands.getoutput("listsize friends").strip()
-announce = commands.getoutput("listsize announce").strip()
-print "There are %s people on fetchmail-friends and %s on fetchmail-announce."% (friends, announce)
+#friends = commands.getoutput("listsize friends").strip()
+#announce = commands.getoutput("listsize announce").strip()
+#print "There are %s people on fetchmail-friends and %s on fetchmail-announce."% (friends, announce)
 
 # getstats.py