Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: recipe_engine/package.py

Issue 1777003003: recipe_engine: change resource API to use repo root (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: review Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_engine/loader.py ('k') | recipe_engine/recipe_api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/package.py
diff --git a/recipe_engine/package.py b/recipe_engine/package.py
index ca1bfe27b38c3a18aa87461c75eed0b666115276..edc5a604b9c64576fdcae973e70f2dd627505440 100644
--- a/recipe_engine/package.py
+++ b/recipe_engine/package.py
@@ -355,10 +355,11 @@ class Package(object):
This is accessed by loader.py through RecipeDeps.get_package.
"""
- def __init__(self, name, repo_spec, deps, recipes_dir):
+ def __init__(self, name, repo_spec, deps, repo_root, recipes_dir):
self.name = name
self.repo_spec = repo_spec
self.deps = deps
+ self.repo_root = repo_root
self.recipes_dir = recipes_dir
def __repr__(self):
@@ -630,6 +631,7 @@ class PackageDeps(object):
package = Package(
project_id, repo_spec, deps,
+ repo_spec.repo_root(self._context),
os.path.join(repo_spec.repo_root(self._context),
package_spec.recipes_path))
« no previous file with comments | « recipe_engine/loader.py ('k') | recipe_engine/recipe_api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698