diff options
author | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-05 01:51:06 +0000 |
---|---|---|
committer | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-05 01:51:06 +0000 |
commit | 9c32bbb531d83910f203790b14928f1d39e2b963 (patch) | |
tree | 35d8996fbd4256c39e928f1bfe91401206fedc6f /native_client_sdk | |
parent | e8bc87b9ddd2694ec55a503cda7d5e1ca2ec7fe8 (diff) | |
download | chromium_src-9c32bbb531d83910f203790b14928f1d39e2b963.zip chromium_src-9c32bbb531d83910f203790b14928f1d39e2b963.tar.gz chromium_src-9c32bbb531d83910f203790b14928f1d39e2b963.tar.bz2 |
[NaCl SDK] Fix bogus message printed when running naclsdk update
BUG=153017
TBR=noelallen@chromium.org
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/11027039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160298 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rwxr-xr-x | native_client_sdk/src/build_tools/sdk_tools/sdk_update_main.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/native_client_sdk/src/build_tools/sdk_tools/sdk_update_main.py b/native_client_sdk/src/build_tools/sdk_tools/sdk_update_main.py index 0a6bf61..c16af4a 100755 --- a/native_client_sdk/src/build_tools/sdk_tools/sdk_update_main.py +++ b/native_client_sdk/src/build_tools/sdk_tools/sdk_update_main.py @@ -522,20 +522,24 @@ def Update(options, argv, config): raise Error("Unrecognized bundle name or argument: '%s'" % ', '.join(bad_args)) + if SDK_TOOLS in args and not options.update_sdk_tools: + # We only want sdk_tools to be updated by sdk_update.py. If the user + # tries to update directly, we just ignore the request. + InfoPrint('Updating sdk_tools happens automatically.\n' + 'Ignoring manual update request.') + args.remove(SDK_TOOLS) + for bundle in bundles: bundle_path = os.path.join(options.sdk_root_dir, bundle.name) bundle_update_path = '%s_update' % bundle_path - if bundle.name == SDK_TOOLS and not options.update_sdk_tools: - # We only want sdk_tools to updated by sdk_update.py. If the - # user tries to update directly, we just ignore the request. - InfoPrint('Updating sdk_tools happens automatically.\n' - 'Ignoring manual update request.') - continue - if not (bundle.name in args or ALL in args or (RECOMMENDED in args and bundle[RECOMMENDED] == 'yes')): continue + + if bundle.name == SDK_TOOLS and not options.update_sdk_tools: + continue + def UpdateBundle(): '''Helper to install a bundle''' archive = bundle.GetHostOSArchive() |