Hello community,

here is the log from the commit of package ruby2.6 for openSUSE:Factory checked 
in at 2020-04-29 20:44:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ruby2.6 (Old)
 and      /work/SRC/openSUSE:Factory/.ruby2.6.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ruby2.6"

Wed Apr 29 20:44:20 2020 rev:11 rq:798714 version:2.6.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/ruby2.6/ruby2.6.changes  2020-04-15 
20:07:38.714152084 +0200
+++ /work/SRC/openSUSE:Factory/.ruby2.6.new.2738/ruby2.6.changes        
2020-04-29 20:44:21.563951919 +0200
@@ -1,0 +2,11 @@
+Tue Apr 28 17:52:01 UTC 2020 - Marcus Rueckert <[email protected]>
+
+- make sure that update-alternative weight for the default
+  distribution is always greater than our normal weight
+
+-------------------------------------------------------------------
+Tue Apr 28 17:25:52 UTC 2020 - Marcus Rueckert <[email protected]>
+
+- make the update-alternative weight based on the ruby version
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ ruby2.6.spec ++++++
--- /var/tmp/diff_new_pack.wPZQkq/_old  2020-04-29 20:44:22.123953379 +0200
+++ /var/tmp/diff_new_pack.wPZQkq/_new  2020-04-29 20:44:22.127953390 +0200
@@ -32,6 +32,7 @@
 %define api_version 2.6.0
 %define rb_binary_suffix .ruby2.6
 %define rb_soname ruby2.6
+%define _rb_ua_weight 26
 
 # ruby-macros and ruby-common version
 %define rpm_macros_version 3
@@ -52,6 +53,9 @@
 
 %if "%{rb_default_ruby_suffix}" == "%{rb_soname}"
 %define is_default_ruby 1
+%define rb_ua_weight 1%{_rb_ua_weight}
+%else
+%define rb_ua_weight %{_rb_ua_weight}
 %endif
 
 %define ua_binaries rake rdoc ri bundle bundler
@@ -362,9 +366,9 @@
 %post
 for bin in %{ua_binaries}; do
   /usr/sbin/update-alternatives --install \
-    %{_bindir}/$bin $bin %{_bindir}/$bin.ruby%{rb_binary_suffix} 3
+    %{_bindir}/$bin $bin %{_bindir}/$bin.ruby%{rb_binary_suffix} 
%{rb_ua_weight}
   /usr/sbin/update-alternatives --install \
-    %{_bindir}/$bin%{rb_binary_suffix} $bin%{rb_binary_suffix} 
%{_bindir}/$bin.ruby%{rb_binary_suffix} 3
+    %{_bindir}/$bin%{rb_binary_suffix} $bin%{rb_binary_suffix} 
%{_bindir}/$bin.ruby%{rb_binary_suffix} %{rb_ua_weight}
 done
 
 %preun


Reply via email to