From 6562e26252467436c930a0c2635ba0f0f15c4081 Mon Sep 17 00:00:00 2001 From: brianfinley Date: Fri, 15 Jun 2012 03:47:11 +0000 Subject: [PATCH] - Use "-f" when removing /etc/profile.d/xcat.* on erase. If the file is already removed, then with out "-f", the package fails to erase. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13100 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/xCAT-client.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xCAT-client/xCAT-client.spec b/xCAT-client/xCAT-client.spec index b5bde21d3..f91a52b14 100644 --- a/xCAT-client/xCAT-client.spec +++ b/xCAT-client/xCAT-client.spec @@ -2,7 +2,7 @@ Summary: Core executables and data of the xCAT management project Name: xCAT-client Version: %(cat Version) Release: snap%(date +"%Y%m%d%H%M") -Epoch: 4 +Epoch: 5 License: EPL Group: Applications/System Source: xCAT-client-%(cat Version).tar.gz @@ -212,6 +212,10 @@ rm -rf $RPM_BUILD_ROOT %{prefix} %changelog +* Thu Jun 14 2012 - Brian Elliott Finley +- Use "-f" when removing /etc/profile.d/xcat.* on erase. If the file is + already removed, then with out "-f", the package fails to erase. + * Wed May 2 2007 - Norm Nott - Made changes to make this work on AIX @@ -283,7 +287,7 @@ exit 0 %preun %ifos linux if [ $1 == 0 ]; then #This means only on -e -rm /etc/profile.d/xcat.* +rm -f /etc/profile.d/xcat.* fi %endif