Unverified Commit 20d0b282 authored by Michael Klimushyn's avatar Michael Klimushyn Committed by GitHub

Stop comparing modified timestamps in flutter.bat (#23176)

Fixes flutter/flutter#22062
parent 4f4050bf
...@@ -86,12 +86,8 @@ GOTO :after_subroutine ...@@ -86,12 +86,8 @@ GOTO :after_subroutine
IF NOT EXIST "%stamp_path%" GOTO do_snapshot IF NOT EXIST "%stamp_path%" GOTO do_snapshot
SET /P stamp_value=<"%stamp_path%" SET /P stamp_value=<"%stamp_path%"
IF !stamp_value! NEQ !revision! GOTO do_snapshot IF !stamp_value! NEQ !revision! GOTO do_snapshot
REM Compare "last modified" timestamps
SET pubspec_yaml_path=%flutter_tools_dir%\pubspec.yaml SET pubspec_yaml_path=%flutter_tools_dir%\pubspec.yaml
SET pubspec_lock_path=%flutter_tools_dir%\pubspec.lock 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 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 IF "%newer_file%" EQU "pubspec.yaml" GOTO do_snapshot
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment