Add webpagereplay fetch_config

Bug: 41496458
Change-Id: I0847945a647e2959b4b87d838c01b3f491027707
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5932647
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Ian Struiksma <ianstruiksma@google.com>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
changes/47/5932647/2
Camillo Bruni 6 months ago committed by LUCI CQ
parent 37c0cf9100
commit bc7f9bfff5

@ -0,0 +1,43 @@
# Copyright 2024 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
import config_util # pylint: disable=import-error
# This class doesn't need an __init__ method, so we disable the warning
# pylint: disable=no-init
class WebPageReplay(config_util.Config):
"""Basic Config class for WebPageReplay."""
@staticmethod
def fetch_spec(props):
url = 'https://chromium.googlesource.com/webpagereplay.git'
solution = {
'name': 'webpagereplay',
'url': url,
'deps_file': 'DEPS',
'managed': False,
'custom_deps': {},
}
spec = {
'solutions': [solution],
}
return {
'type': 'gclient_git',
'gclient_git_spec': spec,
}
@staticmethod
def expected_root(_props):
return 'webpagereplay'
def main(argv=None):
return WebPageReplay().handle_args(argv)
if __name__ == '__main__':
sys.exit(main(sys.argv))
Loading…
Cancel
Save