From 20d0b282d1d9541b1dbc0e3515777155c4e79627 Mon Sep 17 00:00:00 2001 From: Michael Klimushyn Date: Thu, 18 Oct 2018 09:15:24 -0700 Subject: [PATCH] Stop comparing modified timestamps in flutter.bat (#23176) Fixes flutter/flutter#22062 --- bin/flutter.bat | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bin/flutter.bat b/bin/flutter.bat index 905b384f77f..9c06698b58a 100644 --- a/bin/flutter.bat +++ b/bin/flutter.bat @@ -86,12 +86,8 @@ GOTO :after_subroutine IF NOT EXIST "%stamp_path%" GOTO do_snapshot SET /P stamp_value=<"%stamp_path%" IF !stamp_value! NEQ !revision! GOTO do_snapshot - REM Compare "last modified" timestamps SET pubspec_yaml_path=%flutter_tools_dir%\pubspec.yaml SET pubspec_lock_path=%flutter_tools_dir%\pubspec.lock - FOR %%i IN ("%pubspec_yaml_path%") DO SET yaml_timestamp=%%~ti - FOR %%i IN ("%pubspec_lock_path%") DO SET lock_timestamp=%%~ti - IF !yaml_timestamp! EQU !lock_timestamp! GOTO do_snapshot FOR /F %%i IN ('DIR /B /O:D "%pubspec_yaml_path%" "%pubspec_lock_path%"') DO SET newer_file=%%i IF "%newer_file%" EQU "pubspec.yaml" GOTO do_snapshot