aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-07-14 19:25:57 -0500
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:52 +1200
commitfac5b245d497eb5b97796a2f570c230b07b58b61 (patch)
treec33c163d72c4aaf11d5823056bb50278bb89093e
parente81daf2e0fbcd38fae1a7ad1b629c97fdae25f31 (diff)
downloadopenembedded-core-contrib-fac5b245d497eb5b97796a2f570c230b07b58b61.tar.gz
rrs/tools: UpstreamHistory only load current recipe files.
Don't load all recipes avaiable in layer because was previous filtered to have the last version. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
-rwxr-xr-xrrs/tools/rrs_upstream_history.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/rrs/tools/rrs_upstream_history.py b/rrs/tools/rrs_upstream_history.py
index 4b969de3fd..521b733cdf 100755
--- a/rrs/tools/rrs_upstream_history.py
+++ b/rrs/tools/rrs_upstream_history.py
@@ -106,8 +106,18 @@ if __name__=="__main__":
transaction.enter_transaction_management()
transaction.managed(True)
for layerbranch in LayerBranch.objects.all():
+ layer = layerbranch.layer
+ urldir = layer.get_fetch_dir()
+ repodir = os.path.join(fetchdir, urldir)
+ layerdir = os.path.join(repodir, layerbranch.vcs_subdir)
+
+ recipe_files = []
+ for recipe in Recipe.objects.filter(layerbranch = layerbranch):
+ file = str(os.path.join(layerdir, recipe.full_path()))
+ recipe_files.append(file)
+
(tinfoil, d, recipes) = load_recipes(layerbranch, bitbakepath,
- fetchdir, settings, logger)
+ fetchdir, settings, logger, recipe_files=recipe_files)
if not recipes:
continue