[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Search for the hash in the whiteboard, not as the entire whiteboard.



This is useful because the status_whiteboard can be used for other things -
like NEEDSRETESTING.  Our old search doesn't take this into account and will
therefore fail to find dupes if the whiteboard contains something else.
---
 exception.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/exception.py b/exception.py
index c54c9a1..70b61c0 100644
--- a/exception.py
+++ b/exception.py
@@ -403,7 +403,7 @@ def saveToBugzilla(anaconda, exn, dest):
     # list.  Otherwise, we need to create a new bug.
     wb = "anaconda_trace_hash:%s" % hash
     buglist = withBugzillaDo(filer, lambda b: b.query({'status_whiteboard': wb,
-                                                       'status_whiteboard_type':'allwordsexact',
+                                                       'status_whiteboard_type':'allwordssubstr',
                                                        'bug_status': []}))
     if buglist is None:
         return False
-- 
1.5.5.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]