diff options
author | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2019-05-22 19:29:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-05-23 14:08:22 (GMT) |
commit | c8e217e0a70f8f445e2c593f44e1105c959fb9d7 (patch) | |
tree | b02a243d33320167c75705eb7f332bb419352eb4 /Source/cmcmd.cxx | |
parent | f03a80aefd4073bc1502c2e486fedfdbd8addfb6 (diff) | |
download | CMake-c8e217e0a70f8f445e2c593f44e1105c959fb9d7.zip CMake-c8e217e0a70f8f445e2c593f44e1105c959fb9d7.tar.gz CMake-c8e217e0a70f8f445e2c593f44e1105c959fb9d7.tar.bz2 |
cmake: tar: Allow selective extracting and listing of archives
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index 3c75957..bcf7b2f 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -1127,7 +1127,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string> const& args) return 1; } if (action == cmSystemTools::TarActionList) { - if (!cmSystemTools::ListTar(outFile.c_str(), verbose)) { + if (!cmSystemTools::ListTar(outFile.c_str(), files, verbose)) { cmSystemTools::Error("Problem listing tar: " + outFile); return 1; } @@ -1142,7 +1142,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string> const& args) return 1; } } else if (action == cmSystemTools::TarActionExtract) { - if (!cmSystemTools::ExtractTar(outFile.c_str(), verbose)) { + if (!cmSystemTools::ExtractTar(outFile.c_str(), files, verbose)) { cmSystemTools::Error("Problem extracting tar: " + outFile); return 1; } |