summaryrefslogtreecommitdiffstats
path: root/Modules/CPackRPM.cmake
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2010-12-13 19:11:06 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2010-12-13 19:11:06 (GMT)
commit8d366cd1ebc2a5937a40c4b44074852e3f7e7fae (patch)
tree07ab378cb191d9a4eb57a72fac4d2fab6bc15955 /Modules/CPackRPM.cmake
parent1b98d99c28949347c7c6a1e5ee67ee8e49670277 (diff)
downloadCMake-8d366cd1ebc2a5937a40c4b44074852e3f7e7fae.zip
CMake-8d366cd1ebc2a5937a40c4b44074852e3f7e7fae.tar.gz
CMake-8d366cd1ebc2a5937a40c4b44074852e3f7e7fae.tar.bz2
CPackRPM fix bug 0011595 : Can't generate RPMs (on FC11...)
Diffstat (limited to 'Modules/CPackRPM.cmake')
-rw-r--r--Modules/CPackRPM.cmake5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake
index ab909f4..026c45a 100644
--- a/Modules/CPackRPM.cmake
+++ b/Modules/CPackRPM.cmake
@@ -566,10 +566,9 @@ mv $RPM_BUILD_ROOT \"\@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot\"
%install
if [ -e $RPM_BUILD_ROOT ];
then
- mv \"\@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot/*\" $RPM_BUILD_ROOT
-else
- mv \"\@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot\" $RPM_BUILD_ROOT
+ rm -rf $RPM_BUILD_ROOT
fi
+mv \"\@CPACK_TOPLEVEL_DIRECTORY\@/tmpBBroot\" $RPM_BUILD_ROOT
%clean