From fac5b245d497eb5b97796a2f570c230b07b58b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Tue, 14 Jul 2015 19:25:57 -0500 Subject: [PATCH] rrs/tools: UpstreamHistory only load current recipe files. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't load all recipes avaiable in layer because was previous filtered to have the last version. Signed-off-by: Aníbal Limón --- rrs/tools/rrs_upstream_history.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rrs/tools/rrs_upstream_history.py b/rrs/tools/rrs_upstream_history.py index 4b969de..521b733 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