mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 03:27:12 +01:00
Rename validate_triplet to is_valid_triplet
This commit is contained in:
parent
033f577c51
commit
8e3ee05230
@ -13,7 +13,7 @@ namespace vcpkg
|
|||||||
|
|
||||||
fs::path package_dir(const package_spec& spec) const;
|
fs::path package_dir(const package_spec& spec) const;
|
||||||
fs::path port_dir(const package_spec& spec) const;
|
fs::path port_dir(const package_spec& spec) const;
|
||||||
bool validate_triplet(const triplet& t) const;
|
bool is_valid_triplet(const triplet& t) const;
|
||||||
|
|
||||||
std::tr2::sys::path root;
|
std::tr2::sys::path root;
|
||||||
std::tr2::sys::path packages;
|
std::tr2::sys::path packages;
|
||||||
|
@ -87,7 +87,7 @@ static void inner(const vcpkg_cmd_arguments& args)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!paths.validate_triplet(default_target_triplet))
|
if (!paths.is_valid_triplet(default_target_triplet))
|
||||||
{
|
{
|
||||||
System::println(System::color::error, "Error: invalid triplet: %s", default_target_triplet.value);
|
System::println(System::color::error, "Error: invalid triplet: %s", default_target_triplet.value);
|
||||||
TrackProperty("error", "invalid triplet: " + default_target_triplet.value);
|
TrackProperty("error", "invalid triplet: " + default_target_triplet.value);
|
||||||
|
@ -57,7 +57,7 @@ namespace vcpkg
|
|||||||
return this->ports / spec.name;
|
return this->ports / spec.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool vcpkg_paths::validate_triplet(const triplet& t) const
|
bool vcpkg_paths::is_valid_triplet(const triplet& t) const
|
||||||
{
|
{
|
||||||
auto it = fs::directory_iterator(this->triplets);
|
auto it = fs::directory_iterator(this->triplets);
|
||||||
for (; it != fs::directory_iterator(); ++it)
|
for (; it != fs::directory_iterator(); ++it)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user