Hello community,

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

Package is "python3-pep8"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-pep8/python3-pep8.changes        
2016-05-25 21:25:09.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-pep8.new/python3-pep8.changes   
2016-08-18 09:17:31.000000000 +0200
@@ -1,0 +2,5 @@
+Mon Aug 15 14:51:56 UTC 2016 - toddrme2...@gmail.com
+
+- Fix update-alternatives implementation.
+
+-------------------------------------------------------------------

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

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


Reply via email to