Accepting request 180818 from OBS:Server:Unstable

- remove --force usage in favor of portable rm (SLE11)

OBS-URL: https://build.opensuse.org/request/show/180818
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby?expand=0&rev=61
This commit is contained in:
Stephan Kulow 2013-06-25 09:11:49 +00:00 committed by Git OBS Bridge
parent 9ad13026de
commit c8edd27a07
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 25 09:02:48 UTC 2013 - coolo@suse.com
- remove --force usage in favor of portable rm (SLE11)
-------------------------------------------------------------------
Tue Jun 4 17:04:50 UTC 2013 - coolo@suse.com

View File

@ -94,7 +94,9 @@ install -D -m 0644 %{S:2} $RPM_BUILD_ROOT/etc/gemrc
%post
for bin in erb gem irb rake rdoc ri ruby testrb; do
/usr/sbin/update-alternatives --force --install \
# remove non-links or old binaries will stay around forever
test -L %{_bindir}/$bin || rm -v %{_bindir}/$bin
/usr/sbin/update-alternatives --install \
%{_bindir}/$bin $bin %{_bindir}/$bin"2.0" 20
done