Hello community,
here is the log from the commit of package python-fake-factory for
openSUSE:Factory checked in at 2016-08-22 13:59:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-fake-factory (Old)
and /work/SRC/openSUSE:Factory/.python-fake-factory.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fake-factory"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-fake-factory/python-fake-factory.changes
2016-05-13 09:22:52.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.python-fake-factory.new/python-fake-factory.changes
2016-08-22 13:59:19.000000000 +0200
@@ -1,0 +2,5 @@
+Mon Aug 15 14:51:56 UTC 2016 - [email protected]
+
+- Fix update-alternatives implementation.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-fake-factory.spec ++++++
--- /var/tmp/diff_new_pack.4hTQfV/_old 2016-08-22 13:59:20.000000000 +0200
+++ /var/tmp/diff_new_pack.4hTQfV/_new 2016-08-22 13:59:20.000000000 +0200
@@ -26,7 +26,7 @@
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(preun): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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()")}
@@ -55,16 +55,14 @@
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
mv %{buildroot}%{_bindir}/faker %{buildroot}%{_bindir}/faker-%{py_ver}
ln -s -f %{_sysconfdir}/alternatives/faker %{buildroot}%{_bindir}/faker
-# create a dummy target for /etc/alternatives/faker
-touch %{buildroot}%{_sysconfdir}/alternatives/faker
%post
-"%_sbindir/update-alternatives" \
+%_sbindir/update-alternatives \
--install %{_bindir}/faker faker %{_bindir}/faker-%{py_ver} 30
-%postun
+%preun
if [ $1 -eq 0 ] ; then
- "%_sbindir/update-alternatives" --remove faker %{_bindir}/faker-%{py_ver}
+ %_sbindir/update-alternatives --remove faker %{_bindir}/faker-%{py_ver}
fi
%files