forked from firka/flutter
This reverts commit 10c78c264a.
This commit is contained in:
@@ -6,7 +6,6 @@ import '../artifacts.dart';
|
||||
import '../base/analyze_size.dart';
|
||||
import '../base/common.dart';
|
||||
import '../base/file_system.dart';
|
||||
import '../base/io.dart';
|
||||
import '../base/logger.dart';
|
||||
import '../base/process.dart';
|
||||
import '../base/utils.dart';
|
||||
@@ -105,10 +104,7 @@ Future<void> _runCmake(String buildModeName, Directory sourceDir, Directory buil
|
||||
},
|
||||
trace: true,
|
||||
);
|
||||
} on ProcessException catch (err) {
|
||||
if (!isMissingExecutableException(err)) {
|
||||
rethrow;
|
||||
}
|
||||
} on ArgumentError {
|
||||
throwToolExit("cmake not found. Run 'flutter doctor' for more information.");
|
||||
}
|
||||
if (result != 0) {
|
||||
@@ -135,10 +131,7 @@ Future<void> _runBuild(Directory buildDir) async {
|
||||
},
|
||||
trace: true,
|
||||
);
|
||||
} on ProcessException catch (err) {
|
||||
if (!isMissingExecutableException(err)) {
|
||||
rethrow;
|
||||
}
|
||||
} on ArgumentError {
|
||||
throwToolExit("ninja not found. Run 'flutter doctor' for more information.");
|
||||
}
|
||||
if (result != 0) {
|
||||
|
||||
@@ -6,7 +6,6 @@ import 'package:meta/meta.dart';
|
||||
import 'package:process/process.dart';
|
||||
|
||||
import '../base/io.dart';
|
||||
import '../base/process.dart';
|
||||
import '../base/user_messages.dart';
|
||||
import '../base/version.dart';
|
||||
import '../doctor.dart';
|
||||
@@ -169,10 +168,7 @@ class LinuxDoctorValidator extends DoctorValidator {
|
||||
binary,
|
||||
'--version',
|
||||
]);
|
||||
} on ProcessException catch (err) {
|
||||
if (!isMissingExecutableException(err)) {
|
||||
rethrow;
|
||||
}
|
||||
} on ArgumentError {
|
||||
// ignore error.
|
||||
}
|
||||
if (result == null || result.exitCode != 0) {
|
||||
@@ -191,10 +187,7 @@ class LinuxDoctorValidator extends DoctorValidator {
|
||||
'--exists',
|
||||
library,
|
||||
]);
|
||||
} on ProcessException catch (err) {
|
||||
if (!isMissingExecutableException(err)) {
|
||||
rethrow;
|
||||
}
|
||||
} on ArgumentError {
|
||||
// ignore error.
|
||||
}
|
||||
return (result?.exitCode ?? 1) == 0;
|
||||
|
||||
Reference in New Issue
Block a user