From 72b6a7063d854fd2528fd7e7e3dbf660f1102f48 Mon Sep 17 00:00:00 2001 From: Michael Klimushyn Date: Tue, 13 Nov 2018 09:48:32 -0800 Subject: [PATCH] Don't consider a timestamp "newer" when equal (#24251) Fixes flutter/flutter#22062 --- bin/flutter.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/flutter.bat b/bin/flutter.bat index 9c06698b58..da088c2570 100644 --- a/bin/flutter.bat +++ b/bin/flutter.bat @@ -89,6 +89,9 @@ GOTO :after_subroutine SET pubspec_yaml_path=%flutter_tools_dir%\pubspec.yaml SET pubspec_lock_path=%flutter_tools_dir%\pubspec.lock FOR /F %%i IN ('DIR /B /O:D "%pubspec_yaml_path%" "%pubspec_lock_path%"') DO SET newer_file=%%i + FOR %%i IN (%pubspec_yaml_path%) DO SET pubspec_yaml_timestamp=%%~ti + FOR %%i IN (%pubspec_lock_path%) DO SET pubspec_lock_timestamp=%%~ti + IF "%pubspec_yaml_timestamp%" == "%pubspec_lock_timestamp%" SET newer_file="" IF "%newer_file%" EQU "pubspec.yaml" GOTO do_snapshot REM Everything is uptodate - exit subroutine