Hello community,

here is the log from the commit of package python-jupyter_hide_code for 
openSUSE:Factory checked in at 2018-06-19 11:55:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter_hide_code (Old)
 and      /work/SRC/openSUSE:Factory/.python-jupyter_hide_code.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jupyter_hide_code"

Tue Jun 19 11:55:33 2018 rev:2 rq:616078 version:0.5.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jupyter_hide_code/python-jupyter_hide_code.changes
        2018-06-02 11:59:01.764857981 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jupyter_hide_code.new/python-jupyter_hide_code.changes
   2018-06-19 11:55:36.499976720 +0200
@@ -1,0 +2,10 @@
+Sun Jun 10 11:05:31 UTC 2018 - [email protected]
+
+- Avoid bashism in scriptlet.
+
+-------------------------------------------------------------------
+Tue May 29 14:59:34 UTC 2018 - [email protected]
+
+- Use || true syntax instead of exit 0
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-jupyter_hide_code.spec ++++++
--- /var/tmp/diff_new_pack.KpcklM/_old  2018-06-19 11:55:37.103954297 +0200
+++ /var/tmp/diff_new_pack.KpcklM/_new  2018-06-19 11:55:37.107954148 +0200
@@ -74,16 +74,14 @@
 %{fdupes %{buildroot}%{_datadir}/jupyter/ %{buildroot}%{python3_sitelib}}
 
 %post -n python3-jupyter_hide_code
-jupyter nbextension enable --py --system hide_code
-jupyter serverextension enable --py --system hide_code
-exit 0
+jupyter nbextension enable --py --system hide_code || true
+jupyter serverextension enable --py --system hide_code || true
 
 %preun -n python3-jupyter_hide_code
-if [ $1 == 0 ] && [ -d %{python3_sitelib}/hide_code/ ] ; then
-    jupyter nbextension disable --py --system hide_code
-    jupyter serverextension disable --py --system hide_code
+if [ $1 = 0 ] && [ -d %{python3_sitelib}/hide_code/ ] ; then
+    jupyter nbextension disable --py --system hide_code || true
+    jupyter serverextension disable --py --system hide_code || true
 fi
-exit 0
 
 %files %{python_files}
 %doc README.rst


Reply via email to