[gridengine/f15] Do not let alternatives exit with error
Orion Poplawski
orion at fedoraproject.org
Thu May 31 14:19:55 UTC 2012
commit bdb0a46ff33666de404d535739c30e1839861cf6
Author: Orion Poplawski <orion at cora.nwra.com>
Date: Thu May 31 08:18:25 2012 -0600
Do not let alternatives exit with error
gridengine.spec | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gridengine.spec b/gridengine.spec
index 01f09ed..6226e7f 100644
--- a/gridengine.spec
+++ b/gridengine.spec
@@ -457,10 +457,12 @@ alternatives --install %{_bindir}/qsub qsub %{_bindir}/qsub-ge 10 \
%{_mandir}/man1/qselect-ge.1.gz \
--slave %{_bindir}/qstat qstat %{_bindir}/qstat-ge \
--slave %{_mandir}/man1/qstat.1.gz qstat-man \
- %{_mandir}/man1/qstat-ge.1.gz
+ %{_mandir}/man1/qstat-ge.1.gz || :
%preun
-alternatives --remove qsub %{_bindir}/qsub-ge
+if [ $1 -eq 0 ] ; then
+ alternatives --remove qsub %{_bindir}/qsub-ge || :
+fi
%postun -p /sbin/ldconfig
More information about the scm-commits
mailing list