From ea62d6973b657041021f00c67726cf476acd2424 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 5 May 2010 14:39:51 -0400 Subject: Do not list file names during 'cmake -E tar xz' Since commit "Switch to using libarchive from libtar" (2009-10-30) the the implementation of "tar xz" has printed all paths from the tarball as a single line with no separator. This fixes the logic to extract silently as expected. --- Source/cmSystemTools.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index d176987..d914203 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -2048,12 +2048,13 @@ bool extract_tar(const char* outFileName, bool verbose, if (verbose && extract) { cmSystemTools::Stdout("x "); + cmSystemTools::Stdout(archive_entry_pathname(entry)); } if(verbose && !extract) { list_item_verbose(stdout, entry); } - else + else if(!extract) { cmSystemTools::Stdout(archive_entry_pathname(entry)); } -- cgit v0.12