From 2ff5592baf011de9c778d3c2481b8ed3912f1a4b Mon Sep 17 00:00:00 2001 From: David Reyna Date: Sun, 3 Sep 2017 21:02:22 -0700 Subject: toaster: recipe links broken for default layers The default layers are missing the recipe link definitions in the fixture files, and because they are predefined they do not get the updated information from the Layer Index. [YOCTO #12006] Signed-off-by: David Reyna Signed-off-by: Richard Purdie --- lib/toaster/orm/fixtures/oe-core.xml | 3 +++ lib/toaster/orm/fixtures/poky.xml | 9 +++++++++ lib/toaster/orm/management/commands/lsupdates.py | 2 ++ 3 files changed, 14 insertions(+) diff --git a/lib/toaster/orm/fixtures/oe-core.xml b/lib/toaster/orm/fixtures/oe-core.xml index e285ec6ed..66c3595f8 100644 --- a/lib/toaster/orm/fixtures/oe-core.xml +++ b/lib/toaster/orm/fixtures/oe-core.xml @@ -65,6 +65,9 @@ openembedded-core git://git.openembedded.org/openembedded-core + http://cgit.openembedded.org/openembedded-core + http://cgit.openembedded.org/openembedded-core/tree/%path%?h=%branch% + http://cgit.openembedded.org/openembedded-core/tree/%path%?h=%branch% 1 diff --git a/lib/toaster/orm/fixtures/poky.xml b/lib/toaster/orm/fixtures/poky.xml index b3f6c9634..7827aac28 100644 --- a/lib/toaster/orm/fixtures/poky.xml +++ b/lib/toaster/orm/fixtures/poky.xml @@ -97,6 +97,9 @@ openembedded-core git://git.yoctoproject.org/poky + http://git.yoctoproject.org/cgit/cgit.cgi/poky + http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch% + http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch% 1 @@ -125,6 +128,9 @@ meta-poky git://git.yoctoproject.org/poky + http://git.yoctoproject.org/cgit/cgit.cgi/poky + http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch% + http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch% 2 @@ -153,6 +159,9 @@ meta-yocto-bsp git://git.yoctoproject.org/poky + http://git.yoctoproject.org/cgit/cgit.cgi/poky + http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch% + http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/%path%?h=%branch% 3 diff --git a/lib/toaster/orm/management/commands/lsupdates.py b/lib/toaster/orm/management/commands/lsupdates.py index 54b4fab06..efc6b3a94 100644 --- a/lib/toaster/orm/management/commands/lsupdates.py +++ b/lib/toaster/orm/management/commands/lsupdates.py @@ -166,6 +166,8 @@ class Command(BaseCommand): l.description = li['description'] if created: + # predefined layers in the fixtures (for example poky.xml) + # always preempt the Layer Index for these values l.vcs_url = li['vcs_url'] l.vcs_web_url = li['vcs_web_url'] l.vcs_web_tree_base_url = li['vcs_web_tree_base_url'] -- cgit 1.2.3-korg