forked from pool/python-bugzilla
Accepting request 175863 from home:WernerFink:branches:devel:languages:python
- Fix UL sections that is check also for URL without final slash this may fix bnc#807901 OBS-URL: https://build.opensuse.org/request/show/175863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzilla?expand=0&rev=26
This commit is contained in:
committed by
Git OBS Bridge
parent
5e0038631b
commit
f361911ee8
16
python-bugzilla-0.6.2-section.patch
Normal file
16
python-bugzilla-0.6.2-section.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
--- a/bugzilla/nvlbugzilla.py
|
||||
+++ b/bugzilla/nvlbugzilla.py
|
||||
@@ -82,7 +82,12 @@ class NovellBugzilla(Bugzilla34):
|
||||
|
||||
obs_url = self.__class__.obs_url
|
||||
if not c.has_section(obs_url):
|
||||
- return
|
||||
+ if obs_url[-1:] == '/':
|
||||
+ # strip the final slash and retry
|
||||
+ self.__class__.obs_url = obs_url[:-1]
|
||||
+ obs_url = self.__class__.obs_url
|
||||
+ if not c.has_section(obs_url):
|
||||
+ return
|
||||
|
||||
try:
|
||||
user = c.get(obs_url, 'user')
|
||||
Reference in New Issue
Block a user