[flutter_tools] ensure linux doctor validator finishes when pkg-config is not installed (#103755)
This commit is contained in:
committed by
GitHub
parent
4f96419612
commit
4c417884c2
@@ -127,6 +127,8 @@ class LinuxDoctorValidator extends DoctorValidator {
|
||||
final _VersionInfo? version = installedVersions[kPkgConfigBinary];
|
||||
if (version == null || version.number == null) {
|
||||
messages.add(ValidationMessage.error(_userMessages.pkgConfigMissing));
|
||||
// Exit early because we cannot validate libraries without pkg-config.
|
||||
return ValidationResult(validationType, messages);
|
||||
} else {
|
||||
assert(_requiredBinaryVersions.containsKey(kPkgConfigBinary));
|
||||
// The full version description is just the number, so add context.
|
||||
|
||||
Reference in New Issue
Block a user