summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/buildinfohelper.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-07-21 14:43:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-26 08:10:36 +0100
commit97278fb51c3d4fe46c2a3110015e291fdc5d502d (patch)
tree2535f7584e2ccc4390ecfbaf16031e8b8886e4c5 /bitbake/lib/bb/ui/buildinfohelper.py
parent8b3146007f98ba6618662cc47ed1c1491ef8945a (diff)
downloadpoky-97278fb51c3d4fe46c2a3110015e291fdc5d502d.tar.gz
bitbake: toaster: orm Remove the layerindex specific up_branch fields
We don't need to keep track of layerindex data in our database. And using branch==release is very confusing in the schema. Instead use the existing Release definition to keep track of which release a layer_version is for. Remove the Branch model and all references to it. Create a migration path to convert from up_branches to their corresponding releases. (Bitbake rev: f8f4cffe6fd371f3a7e63690c68f3fcb5dc1f297) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/buildinfohelper.py')
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 91189f60ec..8cd9371b06 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -393,7 +393,7 @@ class ORMWrapper(object):
393 layer_copy, c = Layer_Version.objects.get_or_create( 393 layer_copy, c = Layer_Version.objects.get_or_create(
394 build=build_obj, 394 build=build_obj,
395 layer=layer_obj.layer, 395 layer=layer_obj.layer,
396 up_branch=layer_obj.up_branch, 396 release=layer_obj.release,
397 branch=layer_version_information['branch'], 397 branch=layer_version_information['branch'],
398 commit=layer_version_information['commit'], 398 commit=layer_version_information['commit'],
399 local_path=layer_version_information['local_path'], 399 local_path=layer_version_information['local_path'],
@@ -625,8 +625,8 @@ class ORMWrapper(object):
625 Recipe, 625 Recipe,
626 name=built_recipe.name, 626 name=built_recipe.name,
627 layer_version__build=None, 627 layer_version__build=None,
628 layer_version__up_branch= 628 layer_version__release=
629 built_recipe.layer_version.up_branch, 629 built_recipe.layer_version.release,
630 file_path=built_recipe.file_path, 630 file_path=built_recipe.file_path,
631 version=built_recipe.version 631 version=built_recipe.version
632 ) 632 )