diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2022-08-02 13:26:21 -0700 |
---|---|---|
committer | Vignesh Venkatasubramanian <vigneshv@google.com> | 2022-08-25 13:27:22 -0700 |
commit | 51738d52b6c91d4573b75f6483dd045d0affc00b (patch) | |
tree | e8cf5f7cdc94a5abfe84a758a4245d7269b65f8f /files/cleanup_links.py | |
parent | fe33d276d689446c03db3f1f761797b01aa06e1f (diff) | |
download | libyuv-51738d52b6c91d4573b75f6483dd045d0affc00b.tar.gz |
Update external/libyuv to r1837
Update external/libyuv to version r1837 (d53f1bee) from upstream.
This brings in some new functions that will be used by libavif.
Also update README.version with local modifications. The files/
subdirectory is a pristine copy of the upstream checkout except
for the local modifications that are listed in README.version.
Bug: b/241008246
Bug: b/228492909
Test: Builds. Media and Camera CTS tests pass.
Merged-In: I1bd041e475666e13fafd8c3792d7142a022d435a
Change-Id: I85df21181e582ff835aab1e9ef13ad3ac8421d30
Diffstat (limited to 'files/cleanup_links.py')
-rwxr-xr-x | files/cleanup_links.py | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/files/cleanup_links.py b/files/cleanup_links.py index ba290789..7d1eba9b 100755 --- a/files/cleanup_links.py +++ b/files/cleanup_links.py @@ -1,4 +1,5 @@ -#!/usr/bin/env python +#!/usr/bin/env vpython3 + # Copyright 2017 The LibYuv Project Authors. All rights reserved. # # Use of this source code is governed by a BSD-style license @@ -18,8 +19,8 @@ landing that change, this script cleans up any old symlinks, avoiding annoying manual cleanup needed in order to complete gclient sync. """ +import argparse import logging -import optparse import os import shelve import subprocess @@ -32,14 +33,14 @@ LINKS_DB = 'links' # Version management to make future upgrades/downgrades easier to support. SCHEMA_VERSION = 1 -class WebRTCLinkSetup(object): +class WebRTCLinkSetup(): def __init__(self, links_db, dry_run=False): self._dry_run = dry_run self._links_db = links_db def CleanupLinks(self): logging.debug('CleanupLinks') - for source, link_path in self._links_db.iteritems(): + for source, link_path in self._links_db.tems(): if source == 'SCHEMA_VERSION': continue if os.path.islink(link_path) or sys.platform.startswith('win'): @@ -71,15 +72,15 @@ def _initialize_database(filename): def main(): - parser = optparse.OptionParser() - parser.add_option('-d', '--dry-run', action='store_true', default=False, - help='Print what would be done, but don\'t perform any ' - 'operations. This will automatically set logging to ' - 'verbose.') - parser.add_option('-v', '--verbose', action='store_const', - const=logging.DEBUG, default=logging.INFO, - help='Print verbose output for debugging.') - options, _ = parser.parse_args() + p = argparse.ArgumentParser() + p.add_argument('-d', '--dry-run', action='store_true', default=False, + help='Print what would be done, but don\'t perform any ' + 'operations. This will automatically set logging to ' + 'verbose.') + p.add_argument('-v', '--verbose', action='store_const', + const=logging.DEBUG, default=logging.INFO, + help='Print verbose output for debugging.') + options = p.parse_args() if options.dry_run: options.verbose = logging.DEBUG |