diff --git a/python-bugzilla-0.6.2-section.patch b/python-bugzilla-0.6.2-section.patch new file mode 100644 index 0000000..3f38c17 --- /dev/null +++ b/python-bugzilla-0.6.2-section.patch @@ -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') diff --git a/python-bugzilla.changes b/python-bugzilla.changes index e3da800..05c8938 100644 --- a/python-bugzilla.changes +++ b/python-bugzilla.changes @@ -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 diff --git a/python-bugzilla.spec b/python-bugzilla.spec index b83a2bf..80f5543 100644 --- a/python-bugzilla.spec +++ b/python-bugzilla.spec @@ -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