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
diff --git a/sync_chromium.py b/sync_chromium.py
index 9d2c05b..1f66a71 100755
--- a/sync_chromium.py
+++ b/sync_chromium.py
@@ -75,7 +75,8 @@
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