Hello community,

here is the log from the commit of package python-pyflakes for openSUSE:Factory 
checked in at 2016-08-22 13:58:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyflakes (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyflakes.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyflakes"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyflakes/python-pyflakes.changes  
2016-01-20 09:53:35.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-pyflakes.new/python-pyflakes.changes     
2016-08-22 13:58:56.000000000 +0200
@@ -1,0 +2,5 @@
+Mon Aug 15 14:51:56 UTC 2016 - [email protected]
+
+- Fix update-alternatives implementation.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pyflakes.spec ++++++
--- /var/tmp/diff_new_pack.NFL8ng/_old  2016-08-22 13:58:57.000000000 +0200
+++ /var/tmp/diff_new_pack.NFL8ng/_new  2016-08-22 13:58:57.000000000 +0200
@@ -30,7 +30,7 @@
 # the pkg_resources module is required at runtime
 Requires:       python-setuptools
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(preun): update-alternatives
 %if 0%{?suse_version} <= 1110
 %{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
 %else
@@ -55,16 +55,14 @@
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
 mv %{buildroot}%{_bindir}/pyflakes %{buildroot}%{_bindir}/pyflakes-%{py_ver}
 ln -s -f %{_sysconfdir}/alternatives/pyflakes %{buildroot}%{_bindir}/pyflakes
-# create a dummy target for /etc/alternatives/pyflakes
-touch %{buildroot}%{_sysconfdir}/alternatives/pyflakes
 
 %post
-"%_sbindir/update-alternatives" \
+%_sbindir/update-alternatives \
    --install %{_bindir}/pyflakes pyflakes %{_bindir}/pyflakes-%{py_ver} 30
 
-%postun
+%preun
 if [ $1 -eq 0 ] ; then
-    "%_sbindir/update-alternatives" --remove pyflakes 
%{_bindir}/pyflakes-%{py_ver}
+    %_sbindir/update-alternatives --remove pyflakes 
%{_bindir}/pyflakes-%{py_ver}
 fi
 
 %files


Reply via email to