Hello community,

here is the log from the commit of package python3-pycodestyle for 
openSUSE:Factory checked in at 2016-08-18 09:17:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-pycodestyle (Old)
 and      /work/SRC/openSUSE:Factory/.python3-pycodestyle.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-pycodestyle"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-pycodestyle/python3-pycodestyle.changes  
2016-07-14 09:45:24.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python3-pycodestyle.new/python3-pycodestyle.changes 
    2016-08-18 09:17:25.000000000 +0200
@@ -1,0 +2,5 @@
+Mon Aug 15 14:51:56 UTC 2016 - [email protected]
+
+- Fix update-alternatives implementation.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python3-pycodestyle.spec ++++++
--- /var/tmp/diff_new_pack.tcsrg4/_old  2016-08-18 09:17:26.000000000 +0200
+++ /var/tmp/diff_new_pack.tcsrg4/_new  2016-08-18 09:17:26.000000000 +0200
@@ -29,7 +29,7 @@
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(preun): update-alternatives
 BuildArch:      noarch
 
 %description
@@ -54,18 +54,16 @@
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
 mv %{buildroot}%{_bindir}/pycodestyle 
%{buildroot}%{_bindir}/pycodestyle-%{py3_ver}
 ln -s -f %{_sysconfdir}/alternatives/pycodestyle 
%{buildroot}%{_bindir}/pycodestyle
-# create a dummy target for /etc/alternatives/pycodestyle
-touch %{buildroot}%{_sysconfdir}/alternatives/pycodestyle
 
 %fdupes %{buildroot}%{python3_sitelib}
 
 %post
-"%_sbindir/update-alternatives" \
+%_sbindir/update-alternatives \
    --install %{_bindir}/pycodestyle pycodestyle 
%{_bindir}/pycodestyle-%{py3_ver} 30
 
-%postun
+%preun
 if [ $1 -eq 0 ] ; then
-    "%_sbindir/update-alternatives" --remove pycodestyle 
%{_bindir}/pycodestyle-%{py3_ver}
+    %_sbindir/update-alternatives --remove pycodestyle 
%{_bindir}/pycodestyle-%{py3_ver}
 fi
 
 %check


Reply via email to