Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-testrepository for
openSUSE:Factory checked in at 2026-05-11 16:58:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-testrepository (Old)
and /work/SRC/openSUSE:Factory/.python-testrepository.new.1966 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-testrepository"
Mon May 11 16:58:03 2026 rev:27 rq:1352382 version:0.0.22
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-testrepository/python-testrepository.changes
2026-03-09 16:13:15.517671426 +0100
+++
/work/SRC/openSUSE:Factory/.python-testrepository.new.1966/python-testrepository.changes
2026-05-11 17:08:33.984500397 +0200
@@ -1,0 +2,6 @@
+Mon May 11 07:37:19 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Use libalternatives instead of update-alternatives in SLES-16 and
+ Tumbleweed
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-testrepository.spec ++++++
--- /var/tmp/diff_new_pack.L1JJJy/_old 2026-05-11 17:08:34.480520805 +0200
+++ /var/tmp/diff_new_pack.L1JJJy/_new 2026-05-11 17:08:34.484520970 +0200
@@ -16,6 +16,12 @@
#
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
%{?sle15_python_module_pythons}
Name: python-testrepository
Version: 0.0.22
@@ -39,8 +45,13 @@
Requires: python-fixtures
Requires: python-iso8601
Requires: python-python-subunit >= 1.0.0
+%if %{with libalternatives}
+Requires: alts
+BuildRequires: alts
+%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
+%endif
BuildArch: noarch
%python_subpackages
@@ -75,6 +86,10 @@
$python ./testr run --parallel
}
+%pre
+# removing old update-alternatives entries
+%python_libalternatives_reset_alternative testr
+
%post
%python_install_alternative testr