summaryrefslogtreecommitdiffstats
path: root/Source/cmcmd.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-24 14:41:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-05-24 14:43:14 (GMT)
commit4ec2b999414495ae58871755307ea17f391f7910 (patch)
tree3d69527e6968df26a444888fbf09c8c8e7e35bb6 /Source/cmcmd.cxx
parent2b8e5a3ba772d6df6e56a28d8645127008636b03 (diff)
parentc8e217e0a70f8f445e2c593f44e1105c959fb9d7 (diff)
downloadCMake-4ec2b999414495ae58871755307ea17f391f7910.zip
CMake-4ec2b999414495ae58871755307ea17f391f7910.tar.gz
CMake-4ec2b999414495ae58871755307ea17f391f7910.tar.bz2
Merge topic 'selective-tar-extracting-and-listing'
c8e217e0a7 cmake: tar: Allow selective extracting and listing of archives Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3342
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 ad34107..4ddfddd 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;
}