summaryrefslogtreecommitdiffstats
path: root/Source/cmcmd.cxx
diff options
context:
space:
mode:
authorBartosz Kosiorek <gang65@poczta.onet.pl>2019-05-22 19:29:08 (GMT)
committerBrad King <brad.king@kitware.com>2019-05-23 14:08:22 (GMT)
commitc8e217e0a70f8f445e2c593f44e1105c959fb9d7 (patch)
treeb02a243d33320167c75705eb7f332bb419352eb4 /Source/cmcmd.cxx
parentf03a80aefd4073bc1502c2e486fedfdbd8addfb6 (diff)
downloadCMake-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.cxx4
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;
}