diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2010-12-13 19:11:06 (GMT) |
---|---|---|
committer | Eric NOULARD <eric.noulard@gmail.com> | 2010-12-13 19:11:06 (GMT) |
commit | 8d366cd1ebc2a5937a40c4b44074852e3f7e7fae (patch) | |
tree | 07ab378cb191d9a4eb57a72fac4d2fab6bc15955 /Modules | |
parent | 1b98d99c28949347c7c6a1e5ee67ee8e49670277 (diff) | |
download | CMake-8d366cd1ebc2a5937a40c4b44074852e3f7e7fae.zip CMake-8d366cd1ebc2a5937a40c4b44074852e3f7e7fae.tar.gz CMake-8d366cd1ebc2a5937a40c4b44074852e3f7e7fae.tar.bz2 |
CPackRPM fix bug 0011595 : Can't generate RPMs (on FC11...)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CPackRPM.cmake | 5 |
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 |