mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-24 16:51:38 +01:00
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:
parent
29ba85c53e
commit
5e5b753c4c
@ -26,8 +26,10 @@ parser.add_option('-q', '--quiet',
|
|||||||
|
|
||||||
# The CEF root directory is the parent directory of _this_ script.
|
# 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))
|
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.stdout.write("Not an SVN checkout.\n")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
@ -38,7 +40,6 @@ if not options.quiet:
|
|||||||
cef_info['url']+"\n")
|
cef_info['url']+"\n")
|
||||||
|
|
||||||
# Retrieve the Chromium SVN info.
|
# Retrieve the Chromium SVN info.
|
||||||
src_dir = os.path.join(cef_dir, os.pardir)
|
|
||||||
chromium_info = get_svn_info(src_dir)
|
chromium_info = get_svn_info(src_dir)
|
||||||
if not options.quiet:
|
if not options.quiet:
|
||||||
sys.stdout.write('Using Chromium revision '+chromium_info['revision']+' @ '+\
|
sys.stdout.write('Using Chromium revision '+chromium_info['revision']+' @ '+\
|
||||||
|
Loading…
Reference in New Issue
Block a user