From e9b041f21e221fd83c8732d940b98cb5109679b1 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Sun, 16 Oct 2016 10:05:13 -0700 Subject: [PATCH] don't run the summary code if the upgrade fails (#6350) --- packages/flutter_tools/lib/src/commands/upgrade.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/lib/src/commands/upgrade.dart b/packages/flutter_tools/lib/src/commands/upgrade.dart index 0ddf078b32..d7368f6a78 100644 --- a/packages/flutter_tools/lib/src/commands/upgrade.dart +++ b/packages/flutter_tools/lib/src/commands/upgrade.dart @@ -47,11 +47,11 @@ class UpgradeCommand extends FlutterCommand { mapFunction: (String line) => matchesGitLine(line) ? null : line ); - await buildUnlinkedForPackages(Cache.flutterRoot); - if (code != 0) return code; + await buildUnlinkedForPackages(Cache.flutterRoot); + // Check for and download any engine and pkg/ updates. // We run the 'flutter' shell script re-entrantly here // so that it will download the updated Dart and so forth