Make alternative scriptlet less noisy (Ralph Bean)
This commit is contained in:
parent
dc3bf25c60
commit
e21ea6479f
11
vala.spec
11
vala.spec
@ -190,7 +190,7 @@ cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_emacs_sitestartdir}
|
|||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
for f in %{vala_binaries};
|
for f in %{vala_binaries};
|
||||||
do
|
do
|
||||||
if find -L /etc/alternatives/$f -type l | grep $f;
|
if [ -L /etc/alternatives/$f ];
|
||||||
then
|
then
|
||||||
# older vala packages fail to remove alternatives on upgrade
|
# older vala packages fail to remove alternatives on upgrade
|
||||||
%{_sbindir}/alternatives --remove $f $(readlink /etc/alternatives/$f)
|
%{_sbindir}/alternatives --remove $f $(readlink /etc/alternatives/$f)
|
||||||
@ -200,7 +200,7 @@ do
|
|||||||
done
|
done
|
||||||
for f in %{vala_manpages};
|
for f in %{vala_manpages};
|
||||||
do
|
do
|
||||||
if find -L /etc/alternatives/$f -type l | grep $f;
|
if [ -L /etc/alternatives/$f ];
|
||||||
then
|
then
|
||||||
%{_sbindir}/alternatives --remove $f $(readlink /etc/alternatives/$f)
|
%{_sbindir}/alternatives --remove $f $(readlink /etc/alternatives/$f)
|
||||||
fi
|
fi
|
||||||
@ -211,7 +211,7 @@ done
|
|||||||
%posttrans tools
|
%posttrans tools
|
||||||
for f in %{vala_tools_binaries};
|
for f in %{vala_tools_binaries};
|
||||||
do
|
do
|
||||||
if find -L /etc/alternatives/$f -type l | grep $f;
|
if [ -L /etc/alternatives/$f ];
|
||||||
then
|
then
|
||||||
%{_sbindir}/alternatives --remove $f $(readlink /etc/alternatives/$f)
|
%{_sbindir}/alternatives --remove $f $(readlink /etc/alternatives/$f)
|
||||||
fi
|
fi
|
||||||
@ -220,7 +220,7 @@ do
|
|||||||
done
|
done
|
||||||
for f in %{vala_tools_manpages};
|
for f in %{vala_tools_manpages};
|
||||||
do
|
do
|
||||||
if find -L /etc/alternatives/$f -type l | grep $f;
|
if [ -L /etc/alternatives/$f ];
|
||||||
then
|
then
|
||||||
%{_sbindir}/alternatives --remove $f $(readlink /etc/alternatives/$f)
|
%{_sbindir}/alternatives --remove $f $(readlink /etc/alternatives/$f)
|
||||||
fi
|
fi
|
||||||
@ -305,8 +305,9 @@ done
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat May 5 2012 Michel Salim <salimma@fedoraproject.org> - 0.17.0-2
|
* Fri May 11 2012 Michel Salim <salimma@fedoraproject.org> - 0.17.0-2
|
||||||
- Spec clean-ups
|
- Spec clean-ups
|
||||||
|
- Make alternative scriptlet less noisy (Ralph Bean)
|
||||||
|
|
||||||
* Thu May 3 2012 Michel Salim <salimma@fedoraproject.org> - 0.17.0-1
|
* Thu May 3 2012 Michel Salim <salimma@fedoraproject.org> - 0.17.0-1
|
||||||
- Update to 0.17.0
|
- Update to 0.17.0
|
||||||
|
Loading…
Reference in New Issue
Block a user