From 99ca8c8862575d4311f874d001e3c76ac025c37d Mon Sep 17 00:00:00 2001 From: Will Woods Date: Tue, 19 Aug 2008 14:34:40 -0400 Subject: Prefer RHBugzilla3 over RHBugzilla --- bugzilla/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bugzilla/__init__.py b/bugzilla/__init__.py index 8dc06db..0bab22e 100644 --- a/bugzilla/__init__.py +++ b/bugzilla/__init__.py @@ -39,7 +39,10 @@ def getBugzillaClassForURL(url): # RH BZ 3.2 will have rhbz == True and bzversion == 3.1.x or 3.2.x. # To prefer Bugzilla32 over RHBugzilla do: if rhbz and (bzversion == '') if rhbz: - c = RHBugzilla + if bzversion.startswith('3.'): + c = RHBugzilla3 + else: + c = RHBugzilla elif bzversion.startswith('3.'): if bzversion.startswith('3.0'): c = Bugzilla3 -- cgit