diff options
Diffstat (limited to 'infra/bots/recipe_modules/core/api.py')
-rw-r--r-- | infra/bots/recipe_modules/core/api.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/infra/bots/recipe_modules/core/api.py b/infra/bots/recipe_modules/core/api.py index b5b739549b..0a2cb4ef1d 100644 --- a/infra/bots/recipe_modules/core/api.py +++ b/infra/bots/recipe_modules/core/api.py @@ -94,6 +94,10 @@ class SkiaApi(recipe_api.RecipeApi): m = gclient_cfg.got_revision_mapping m[main_name] = 'got_revision' patch_root = main_name + patch_repo = main.url + if self.m.properties.get('patch_repo'): + patch_repo = self.m.properties['patch_repo'] + patch_root = patch_repo.split('/')[-1].rstrip('.git') if self.m.vars.need_pdfium_checkout: # Skia is a DEP of PDFium; the 'revision' property is a Skia revision, and @@ -106,6 +110,7 @@ class SkiaApi(recipe_api.RecipeApi): gclient_cfg.patch_projects['skia'] = (skia_dep_path, 'HEAD') gclient_cfg.revisions[skia_dep_path] = self.m.properties['revision'] m[skia_dep_path] = 'got_revision' + patch_repo = 'https://skia.googlesource.com/skia.git' patch_root = skia_dep_path if self.m.vars.need_flutter_checkout: @@ -121,6 +126,7 @@ class SkiaApi(recipe_api.RecipeApi): gclient_cfg.patch_projects['skia'] = (skia_dep_path, 'HEAD') gclient_cfg.revisions[skia_dep_path] = self.m.properties['revision'] m[skia_dep_path] = 'got_revision' + patch_repo = 'https://skia.googlesource.com/skia.git' patch_root = skia_dep_path self.update_repo(self.m.vars.checkout_root, main) @@ -150,6 +156,7 @@ class SkiaApi(recipe_api.RecipeApi): self.m.bot_update._issue, self.m.bot_update._patchset, ) + self.m.bot_update._repository = patch_repo self.m.gclient.c = gclient_cfg with self.m.step.context({'cwd': self.m.vars.checkout_root}): |