Hello community, here is the log from the commit of package python-bugzilla for openSUSE:Factory checked in at 2013-05-27 09:58:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-bugzilla (Old) and /work/SRC/openSUSE:Factory/.python-bugzilla.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-bugzilla" Changes: -------- --- /work/SRC/openSUSE:Factory/python-bugzilla/python-bugzilla.changes 2013-03-08 09:39:41.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-bugzilla.new/python-bugzilla.changes 2013-05-27 09:58:22.000000000 +0200 @@ -1,0 +2,13 @@ +Wed May 22 12:13:06 UTC 2013 - speilicke@suse.com + +- Apply python-bugzilla-0.6.2-section.patch +- Cleanup spec file +- Package README + +------------------------------------------------------------------- +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 + +------------------------------------------------------------------- New: ---- python-bugzilla-0.6.2-section.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-bugzilla.spec ++++++ --- /var/tmp/diff_new_pack.QjHU6j/_old 2013-05-27 09:58:22.000000000 +0200 +++ /var/tmp/diff_new_pack.QjHU6j/_new 2013-05-27 09:58:22.000000000 +0200 @@ -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,28 +15,26 @@ # 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 # https://gitorious.org/opensuse/python-bugzilla Patch0: %{name}-0.6.2-novell-default.patch Patch1: %{name}-0.6.2-backtraces.patch - +Patch2: %{name}-0.6.2-section.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel -%if 0%{?suse_version} && 0%{?suse_version} > 1110 -BuildArch: noarch +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else -%{py_requires} +BuildArch: noarch %endif %description @@ -54,22 +52,22 @@ %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build -export CFLAGS="%{optflags}" -%{__python} setup.py build +CFLAGS="%{optflags}" python setup.py build %install -%{__python} setup.py install \ - --root=%{buildroot} \ - --prefix=%{_prefix} \ - --record-rpm=INSTALLED_FILES -sed -i 's#%{_mandir}/man1/bugzilla.1#%{_mandir}/man1/bugzilla.1.gz#' INSTALLED_FILES - -%clean -rm -rf %{buildroot} - -%files -f INSTALLED_FILES -%defattr(-,root,root,0755) +python setup.py install --root=%{buildroot} --prefix=%{_prefix} +#\ --record-rpm=INSTALLED_FILES +#sed -i 's#%{_mandir}/man1/bugzilla.1#%{_mandir}/man1/bugzilla.1.gz#' INSTALLED_FILES + +%files +%defattr(-,root,root,-) +%doc README +%{_bindir}/bugzilla +%{python_sitelib}/bugzilla +%{python_sitelib}/python_bugzilla-%{version}-py%{py_ver}.egg-info +%{_mandir}/man1/bugzilla.1.gz %changelog ++++++ python-bugzilla-0.6.2-section.patch ++++++ --- 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') -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org