[Cmake-commits] [cmake-commits] king committed UntarFile.cmake 1.3 1.4
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Jul 13 10:46:25 EDT 2009
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv30277/Modules
Modified Files:
UntarFile.cmake
Log Message:
BUG: Teach UntarFile to delete dir on error
When tarball extraction fails we should still cleanup the temporary
extraction directory. Otherwise the next attempt will create a new
directory and the first one will never be removed.
Index: UntarFile.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/UntarFile.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** UntarFile.cmake 29 Apr 2009 19:07:09 -0000 1.3
--- UntarFile.cmake 13 Jul 2009 14:46:20 -0000 1.4
***************
*** 60,63 ****
--- 60,64 ----
if(NOT rv EQUAL 0)
+ file(REMOVE_RECURSE "${ut_dir}")
message(FATAL_ERROR "error: untar of '${filename}' failed")
endif()
More information about the Cmake-commits
mailing list