From dde19a6f6033a26be67fa56a96a211d8ec4b9df8 Mon Sep 17 00:00:00 2001 From: "kjellander@webrtc.org" Date: Mon, 24 Nov 2014 10:08:03 +0000 Subject: [PATCH] sync_chromium.py: Check for chromium/src Make sure the script alwyas downloads Chromium if there's no current download. This case can happen if a user is removing the 'src' folder but doesn't know to remove the .last_sync_chromium file. BUG= TESTED=Renamed chromium/src and ran a sync keeping the .last_sync_chromium file, verified it started downloading. TBR=iannucci@chromium.org Review URL: https://webrtc-codereview.appspot.com/27099004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7738 4adac7df-926f-26a2-2b94-8c16560cd09d --- sync_chromium.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sync_chromium.py b/sync_chromium.py index 9d2c05b9d..1f66a71d3 100755 --- a/sync_chromium.py +++ b/sync_chromium.py @@ -75,7 +75,8 @@ def main(): opts.target_revision, repr(target_os_list), ]) - if os.path.exists(flag_file): + if (os.path.exists(os.path.join(opts.chromium_dir, 'src')) and + os.path.exists(flag_file)): with open(flag_file, 'r') as f: if f.read() == flag_file_content: print 'Chromium already up to date: ', opts.target_revision