Index: recipe_engine/package.py |
diff --git a/recipe_engine/package.py b/recipe_engine/package.py |
index 5e89ca9252b3481d59e424ded9c88a996d0d4f1a..bf83236925e39ecb04065456247fb48dc32eeb11 100644 |
--- a/recipe_engine/package.py |
+++ b/recipe_engine/package.py |
@@ -209,8 +209,18 @@ |
Returns list(CommitMetadata) |
""" |
- return self.backend.updates( |
- self.revision, self.backend.resolve_refspec(self._branch_for_remote)) |
+ spec = self.spec_pb() |
+ |
+ paths = [] |
+ subdir = spec.recipes_path |
+ if subdir: |
+ # We add package_file to the list of paths to check because it might |
+ # contain other upstream rolls, which we want. |
+ paths.extend([subdir + os.path.sep, |
+ InfraRepoConfig().relative_recipes_cfg]) |
+ |
+ other_revision = self.backend.resolve_refspec(self._branch_for_remote) |
+ return self.backend.updates(self.revision, other_revision, paths) |
def _components(self): |
return (self.project_id, self.repo, self.revision, self.path) |
@@ -240,8 +250,7 @@ |
'', |
0, |
(), |
- self.spec_pb(), |
- False |
+ self.spec_pb() |
) |
def updates(self): |