15
0

Accepting request 408509 from home:jsegitz:branches:devel:languages:python

- Update to version 1.2.2
- Added NovellBugzilla.patch to ensure it works with SUSE internal
  bugzilla.

OBS-URL: https://build.opensuse.org/request/show/408509
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzilla?expand=0&rev=36
This commit is contained in:
2016-07-18 05:54:23 +00:00
committed by Git OBS Bridge
parent 07b1d4e9e4
commit 1cdbff151b
5 changed files with 29 additions and 6 deletions

13
NovellBugzilla.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: python-bugzilla-1.2.2/build/lib/bugzilla/base.py
===================================================================
--- python-bugzilla-1.2.2.orig/build/lib/bugzilla/base.py 2016-07-12 10:17:49.836875522 +0200
+++ python-bugzilla-1.2.2/build/lib/bugzilla/base.py 2016-07-14 15:09:36.151992677 +0200
@@ -994,7 +994,7 @@ class BugzillaBase(object):
log.debug("Calling Bug.get with: %s", getbugdata)
r = self._proxy.Bug.get(getbugdata)
- if self.bz_ver_major >= 4:
+ if self.bz_ver_major >= 4 or self.__class__.__name__=='NovellBugzilla':
bugdict = dict([(b['id'], b) for b in r['bugs']])
else:
bugdict = dict([(b['id'], b['internals']) for b in r['bugs']])