[Python-checkins] r84734 - in tracker/instances: jython/detectors/patches.py python-dev/detectors/patches.py security/detectors/patches.py
martin.v.loewis
python-checkins at python.org
Sun Sep 12 15:18:01 CEST 2010
Author: martin.v.loewis
Date: Sun Sep 12 15:18:01 2010
New Revision: 84734
Log:
Issue #353: Don't add patch keyword to new issue if it's
already there.
Modified:
tracker/instances/jython/detectors/patches.py
tracker/instances/python-dev/detectors/patches.py
tracker/instances/security/detectors/patches.py
Modified: tracker/instances/jython/detectors/patches.py
==============================================================================
--- tracker/instances/jython/detectors/patches.py (original)
+++ tracker/instances/jython/detectors/patches.py Sun Sep 12 15:18:01 2010
@@ -37,7 +37,8 @@
return
if not newvalues.has_key('keywords'):
newvalues['keywords'] = oldkeywords
- newvalues['keywords'].append(patchid)
+ if patchid not in newvalues['keywords']:
+ newvalues['keywords'].append(patchid)
def init(db):
db.file.audit('create', patches_text_plain)
Modified: tracker/instances/python-dev/detectors/patches.py
==============================================================================
--- tracker/instances/python-dev/detectors/patches.py (original)
+++ tracker/instances/python-dev/detectors/patches.py Sun Sep 12 15:18:01 2010
@@ -37,7 +37,8 @@
return
if not newvalues.has_key('keywords'):
newvalues['keywords'] = oldkeywords
- newvalues['keywords'].append(patchid)
+ if patchid not in newvalues['keywords']:
+ newvalues['keywords'].append(patchid)
def init(db):
db.file.audit('create', patches_text_plain)
Modified: tracker/instances/security/detectors/patches.py
==============================================================================
--- tracker/instances/security/detectors/patches.py (original)
+++ tracker/instances/security/detectors/patches.py Sun Sep 12 15:18:01 2010
@@ -37,7 +37,8 @@
return
if not newvalues.has_key('keywords'):
newvalues['keywords'] = oldkeywords
- newvalues['keywords'].append(patchid)
+ if patchid not in newvalues['keywords']:
+ newvalues['keywords'].append(patchid)
def init(db):
db.file.audit('create', patches_text_plain)
More information about the Python-checkins
mailing list