From 8ebac0c29ac05fe1fec80b7110064f482ce98526 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: May 11 2012 16:24:01 +0000 Subject: Make alternative scriptlet less noisy (Ralph Bean) --- diff --git a/vala.spec b/vala.spec index f7b118c..89fede3 100644 --- a/vala.spec +++ b/vala.spec @@ -190,7 +190,7 @@ cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_emacs_sitestartdir} /sbin/ldconfig for f in %{vala_binaries}; do - if find -L /etc/alternatives/$f -type l | grep $f; + if [ -L /etc/alternatives/$f ]; then # older vala packages fail to remove alternatives on upgrade %{_sbindir}/alternatives --remove $f $(readlink /etc/alternatives/$f) @@ -200,7 +200,7 @@ do done for f in %{vala_manpages}; do - if find -L /etc/alternatives/$f -type l | grep $f; + if [ -L /etc/alternatives/$f ]; then %{_sbindir}/alternatives --remove $f $(readlink /etc/alternatives/$f) fi @@ -211,7 +211,7 @@ done %posttrans tools for f in %{vala_tools_binaries}; do - if find -L /etc/alternatives/$f -type l | grep $f; + if [ -L /etc/alternatives/$f ]; then %{_sbindir}/alternatives --remove $f $(readlink /etc/alternatives/$f) fi @@ -220,7 +220,7 @@ do done for f in %{vala_tools_manpages}; do - if find -L /etc/alternatives/$f -type l | grep $f; + if [ -L /etc/alternatives/$f ]; then %{_sbindir}/alternatives --remove $f $(readlink /etc/alternatives/$f) fi @@ -305,8 +305,9 @@ done %changelog -* Sat May 5 2012 Michel Salim - 0.16.0-4 +* Fri May 11 2012 Michel Salim - 0.16.0-4 - Spec clean-ups +- Make alternative scriptlet less noisy (Ralph Bean) * Fri Apr 6 2012 Michel Salim - 0.16.0-3 - Disable coverage analysis, build-time paths get hard-coded