aboutsummaryrefslogtreecommitdiff
path: root/sync_chromium.py
diff options
context:
space:
mode:
authorkjellander@webrtc.org <kjellander@webrtc.org>2014-11-24 10:08:03 +0000
committerkjellander@webrtc.org <kjellander@webrtc.org>2014-11-24 10:08:03 +0000
commitdde19a6f6033a26be67fa56a96a211d8ec4b9df8 (patch)
tree9f23f65f9fbff70ec431c1fc1f84b5860d2b9097 /sync_chromium.py
parent3398a4ac15c9954f7d6355607897060236c3169b (diff)
downloadwebrtc-dde19a6f6033a26be67fa56a96a211d8ec4b9df8.tar.gz
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
Diffstat (limited to 'sync_chromium.py')
-rwxr-xr-xsync_chromium.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sync_chromium.py b/sync_chromium.py
index 9d2c05b9d9..1f66a71d37 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