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
This commit is contained in:
kjellander@webrtc.org 2014-11-24 10:08:03 +00:00
parent 3398a4ac15
commit dde19a6f60

View File

@ -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