aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_create.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-09-30 17:01:41 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-09-30 17:01:41 -0700
commit51bc83c70e915892a658795f51bb3bb10360ee8d (patch)
tree4d62ed612f908fda78ec370d87e72d400525e6db /toolsrc/src/commands_create.cpp
parente3455e281bd9a2147259f7ba769211b9709e51da (diff)
downloadvcpkg-51bc83c70e915892a658795f51bb3bb10360ee8d.tar.gz
vcpkg-51bc83c70e915892a658795f51bb3bb10360ee8d.zip
Added triplet check in all commands that obtain package_specs
Diffstat (limited to 'toolsrc/src/commands_create.cpp')
-rw-r--r--toolsrc/src/commands_create.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolsrc/src/commands_create.cpp b/toolsrc/src/commands_create.cpp
index d365dac70..5e88f9c65 100644
--- a/toolsrc/src/commands_create.cpp
+++ b/toolsrc/src/commands_create.cpp
@@ -2,6 +2,7 @@
#include "vcpkg_System.h"
#include "vcpkg_Environment.h"
#include "vcpkg_Files.h"
+#include "vcpkg_Input.h"
namespace vcpkg
{
@@ -14,6 +15,7 @@ namespace vcpkg
expected<package_spec> current_spec = package_spec::from_string(args.command_arguments[0], default_target_triplet);
if (const package_spec* spec = current_spec.get())
{
+ Input::check_triplet(spec->target_triplet, paths);
Environment::ensure_utilities_on_path(paths);
// Space OR define the FILENAME with proper spacing