From f361911ee85dc24ab2408beee7158e82d4069853c3831c305350f696d398656b Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 16 May 2013 13:18:25 +0000 Subject: [PATCH] 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 --- python-bugzilla-0.6.2-section.patch | 16 ++++++++++++++++ python-bugzilla.changes | 6 ++++++ python-bugzilla.spec | 8 +++----- 3 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 python-bugzilla-0.6.2-section.patch 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