Skip to contentSkip to conversation

toaster: update web urls for openembedded-core's special case

PATCH In review David Reyna 2 participants 2 messages Aug 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: update web urls for openembedded-core's special case

From: David Reyna <[email protected]>

The layer index update command has a special case for the updating 'openembedded-core' layer, and it was missing reading and updating the git web URL fields.

[YOCTO #8037]

---
 bitbake/lib/toaster/orm/management/commands/lsupdates.py | 3 +++
 1 file changed, 3 insertions(+)
bitbake/lib/toaster/orm/management/commands/lsupdates.py +3 -0
index 89817c8..10870fb 100644
@@ -165,6 +165,9 @@ class Command(NoArgsCommand):
                     # layerindex
                     oe_core_l.summary = li['summary']
                     oe_core_l.description = li['description']
+                    oe_core_l.vcs_web_url = li['vcs_web_url']
+                    oe_core_l.vcs_web_tree_base_url = li['vcs_web_tree_base_url']
+                    oe_core_l.vcs_web_file_base_url = li['vcs_web_file_base_url']
                     oe_core_l.save()
                     li_layer_id_to_toaster_layer_id[li['id']] = oe_core_l.pk
                     self.mini_progress("layers", i, total)
Signature · 1 line
1.9.1
#1 lore raw

Thanks. Applied to toaster-next and send upstream to bitbake-devel

Michael

Quoted 18 lines · David Reyna

From: David Reyna <[email protected]>

The layer index update command has a special case for the updating 'openembedded-core' layer, and it was missing reading and updating the git web URL fields.

[YOCTO #8037]

---
  bitbake/lib/toaster/orm/management/commands/lsupdates.py | 3 +++
  1 file changed, 3 insertions(+)
bitbake/lib/toaster/orm/management/commands/lsupdates.py +0 -0
index 89817c8..10870fb 100644

bitbake/lib/toaster/orm/management/commands/lsupdates.py class Command(NoArgsCommand): · line 173

Quoted 9 lines
bitbake/lib/toaster/orm/management/commands/lsupdates.py +3 -0
@@ -165,6 +165,9 @@ class Command(NoArgsCommand):
                      # layerindex
                      oe_core_l.summary = li['summary']
                      oe_core_l.description = li['description']
+                    oe_core_l.vcs_web_url = li['vcs_web_url']
+                    oe_core_l.vcs_web_tree_base_url = li['vcs_web_tree_base_url']
+                    oe_core_l.vcs_web_file_base_url = li['vcs_web_file_base_url']
                      oe_core_l.save()
                      li_layer_id_to_toaster_layer_id[li['id']] = oe_core_l.pk
                      self.mini_progress("layers", i, total)

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.