Fix check_revision.py to not throw exceptions when using a Chromium git checkout.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1661 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-04-16 16:53:33 +00:00
parent 29ba85c53e
commit 5e5b753c4c
1 changed files with 3 additions and 2 deletions

View File

@ -26,8 +26,10 @@ parser.add_option('-q', '--quiet',
# The CEF root directory is the parent directory of _this_ script.
cef_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
src_dir = os.path.join(cef_dir, os.pardir)
if not os.path.exists(os.path.join(cef_dir, '.svn')):
if not os.path.exists(os.path.join(cef_dir, '.svn')) or \
not os.path.exists(os.path.join(src_dir, '.svn')):
sys.stdout.write("Not an SVN checkout.\n")
sys.exit(0)
@ -38,7 +40,6 @@ if not options.quiet:
cef_info['url']+"\n")
# Retrieve the Chromium SVN info.
src_dir = os.path.join(cef_dir, os.pardir)
chromium_info = get_svn_info(src_dir)
if not options.quiet:
sys.stdout.write('Using Chromium revision '+chromium_info['revision']+' @ '+\