about summary refs log tree commit diff
path: root/pkgs/development/compilers/flutter/patches
diff options
context:
space:
mode:
authorBastien Rivière <babathriviere@gmail.com>2020-03-29 14:10:26 +0200
committerBastien Rivière <babathriviere@gmail.com>2020-03-29 14:25:16 +0200
commit4e0d07f6d74022a2fe9c1a9461acdb9da3ca872e (patch)
tree4ee8b0c04e635c7433537d92989f2bc2756595cb /pkgs/development/compilers/flutter/patches
parentd037e64ef6c876083b3bf1dfa80c73517e18e746 (diff)
downloadnixlib-4e0d07f6d74022a2fe9c1a9461acdb9da3ca872e.tar
nixlib-4e0d07f6d74022a2fe9c1a9461acdb9da3ca872e.tar.gz
nixlib-4e0d07f6d74022a2fe9c1a9461acdb9da3ca872e.tar.bz2
nixlib-4e0d07f6d74022a2fe9c1a9461acdb9da3ca872e.tar.lz
nixlib-4e0d07f6d74022a2fe9c1a9461acdb9da3ca872e.tar.xz
nixlib-4e0d07f6d74022a2fe9c1a9461acdb9da3ca872e.tar.zst
nixlib-4e0d07f6d74022a2fe9c1a9461acdb9da3ca872e.zip
flutter: symlink common patches
Diffstat (limited to 'pkgs/development/compilers/flutter/patches')
l---------[-rw-r--r--]pkgs/development/compilers/flutter/patches/dev/disable-auto-update.patch32
1 files changed, 1 insertions, 31 deletions
diff --git a/pkgs/development/compilers/flutter/patches/dev/disable-auto-update.patch b/pkgs/development/compilers/flutter/patches/dev/disable-auto-update.patch
index 42c09c805cb5..2c92799f3bba 100644..120000
--- a/pkgs/development/compilers/flutter/patches/dev/disable-auto-update.patch
+++ b/pkgs/development/compilers/flutter/patches/dev/disable-auto-update.patch
@@ -1,31 +1 @@
-diff --git a/bin/flutter b/bin/flutter
-index e0c18e235..2c3fb7ddd 100755
---- a/bin/flutter
-+++ b/bin/flutter
-@@ -185,8 +185,6 @@ fi
- # FLUTTER_TOOL_ARGS="--enable-asserts $FLUTTER_TOOL_ARGS"
- # FLUTTER_TOOL_ARGS="$FLUTTER_TOOL_ARGS --observe=65432"
- 
--(upgrade_flutter) 3< "$PROG_NAME"
--
- # FLUTTER_TOOL_ARGS isn't quoted below, because it is meant to be considered as
- # separate space-separated args.
- "$DART" --packages="$FLUTTER_TOOLS_DIR/.packages" $FLUTTER_TOOL_ARGS "$SNAPSHOT_PATH" "$@"
-diff --git a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
-index 99455ae64..f5b0cb59c 100644
---- a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
-+++ b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart
-@@ -301,13 +301,6 @@ class FlutterCommandRunner extends CommandRunner<void> {
-         }
- 
-         _checkFlutterCopy();
--        try {
--          await globals.flutterVersion.ensureVersionFile();
--        } on FileSystemException catch (e) {
--          globals.printError('Failed to write the version file to the artifact cache: "$e".');
--          globals.printError('Please ensure you have permissions in the artifact cache directory.');
--          throwToolExit('Failed to write the version file');
--        }
-         final bool machineFlag = topLevelResults['machine'] as bool;
-         if (topLevelResults.command?.name != 'upgrade' && topLevelResults['version-check'] as bool && !machineFlag) {
-           await globals.flutterVersion.checkFlutterVersionFreshness();
+../beta/disable-auto-update.patch
\ No newline at end of file