mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Add internal buckets for bootstrapping internal repos
BUG=261741 Review URL: https://codereview.chromium.org/313933005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@274969 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@@ -143,7 +143,6 @@ class Mirror(object):
|
||||
gsutil_exe = os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
'third_party', 'gsutil', 'gsutil')
|
||||
bootstrap_bucket = 'chromium-git-cache'
|
||||
|
||||
def __init__(self, url, refs=None, print_func=None):
|
||||
self.url = url
|
||||
@@ -152,6 +151,13 @@ class Mirror(object):
|
||||
self.mirror_path = os.path.join(self.GetCachePath(), self.basedir)
|
||||
self.print = print_func or print
|
||||
|
||||
@property
|
||||
def bootstrap_bucket(self):
|
||||
if 'chrome-internal' in self.url:
|
||||
return 'chrome-git-cache'
|
||||
else:
|
||||
return 'chromium-git-cache'
|
||||
|
||||
@classmethod
|
||||
def FromPath(cls, path):
|
||||
return cls(cls.CacheDirToUrl(path))
|
||||
|
||||
Reference in New Issue
Block a user