14
0

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:
Sascha Peilicke
2013-05-16 13:18:25 +00:00
committed by Git OBS Bridge
parent 5e0038631b
commit f361911ee8
3 changed files with 25 additions and 5 deletions

View 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')

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 16 13:01:19 UTC 2013 - werner@suse.de
- Fix UL sections that is check also for URL without final slash
this may fix bnc#807901
-------------------------------------------------------------------
Thu Jan 3 17:33:50 UTC 2013 - toddrme2178@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-bugzilla
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,15 +15,13 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: python-bugzilla
Version: 0.6.2
Release: 1
Release: 0
Summary: Python library for bugzilla
Group: Development/Libraries/Python
License: GPL-2.0+
Group: Development/Libraries/Python
Url: https://fedorahosted.org/python-bugzilla/
#Source: https://fedorahosted.org/releases/p/y/python-bugzilla/%{name}-%{version}.tar.bz2
Source: %{name}-%{version}-openSUSE-1.tar.bz2