[vala/f16] Make alternative scriptlet less noisy (Ralph Bean)
Michel Alexandre Salim
salimma at fedoraproject.org
Fri May 11 16:25:39 UTC 2012
commit 33f8e988bf357ff9ddbbe680bd8a7ef5d8bd5364
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date: Fri May 11 23:22:46 2012 +0700
Make alternative scriptlet less noisy (Ralph Bean)
vala.spec | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/vala.spec b/vala.spec
index aa3cf6f..fe3b661 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
@@ -302,8 +302,9 @@ done
%changelog
-* Sat May 5 2012 Michel Salim <salimma at fedoraproject.org> - 0.14.2-4
+* Fri May 11 2012 Michel Salim <salimma at fedoraproject.org> - 0.14.2-4
- Spec clean-ups
+- Make alternative scriptlet less noisy (Ralph Bean)
* Fri Apr 6 2012 Michel Salim <salimma at fedoraproject.org> - 0.14.2-3
- Disable coverage analysis, build-time paths get hard-coded
More information about the scm-commits
mailing list