[ofa-general] [PATCH] ibutils - Fix cleanup phase
Nicolas Morey-Chaisemartin
nicolas.morey-chaisemartin at ext.bull.net
Mon May 4 02:02:12 PDT 2009
Move deletion of RPM_BUILD_ROOT before RPM_BUILD_DIR to avoid
'rm: cannot get current directory: No such file or directory' errors during
cleanup phase (showed up on old IA64 RHEL).
Signed-off-by: Sebastien Dugue <sebastien.dugue at bull.net>
Signed-off-by: Nicolas Morey-Chaisemartin <nicolas.morey-chaisemartin at ext.bull.net>
---
ibutils.spec.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ibutils.spec.in b/ibutils.spec.in
index 628230a..1770eb1 100644
--- a/ibutils.spec.in
+++ b/ibutils.spec.in
@@ -81,8 +81,8 @@ esac
%clean
#Remove installed driver after rpm build finished
-rm -rf $RPM_BUILD_DIR/%{name}-%{version}
rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_DIR/%{name}-%{version}
%post
/sbin/ldconfig
More information about the general
mailing list