diff scripts/spam-remover @ 4667:f841a5868101

Bug-fix in spam-remover script: ignore cases where file-list is set
author Ralf Schlatterbeck <rsc@runtux.com>
date Wed, 10 Oct 2012 18:18:20 +0200
parents 73129d1a1bc3
children 6e9b9743de89
line wrap: on
line diff
--- a/scripts/spam-remover	Thu Sep 06 11:24:19 2012 +0200
+++ b/scripts/spam-remover	Wed Oct 10 18:18:20 2012 +0200
@@ -126,6 +126,9 @@
             newjournal = []
             for j in journal:
                 if j[3] == 'set' and 'files' in j[4]:
+                    if j[4]['files'][0][0] not in ('-', '+') :
+                        newjournal.append(j)
+                        continue
                     changes = dict(j[4]['files'])
                     # only consider file additions by this user
                     if j[2] in users and '+' in changes:

Roundup Issue Tracker: http://roundup-tracker.org/