From 57498cede4696526c121e0112b5dea3e6e8365ac Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Tue, 5 Nov 2013 12:26:46 +0000 Subject: [PATCH] bitbake: toaster: fix target package information Toaster needs to record information about packages installed on a built target image, and dependencies between these packages. This patch fixes a bug where the variable from the server wasn't read correctly leading which caused the buildhistory to not be processed correctly. Additionally, two display issues in the package table were fixed, issues that lead to package information being displayed incorrectly. [YOCTO #5197] (Bitbake rev: ab4bc18409d80de6d069e3dd76c3c54964fe5764) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/buildinfohelper.py | 2 +- bitbake/lib/toaster/bldviewer/templates/package.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 2ca0bd380ef..fbf75466d0c 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py @@ -548,7 +548,7 @@ class BuildInfoHelper(object): MACHINE_ARCH, error = self.server.runCommand(['getVariable', 'MACHINE_ARCH']) TCLIBC, error = self.server.runCommand(['getVariable', 'TCLIBC']) - BUILDHISTORY_DIR = self.server.runCommand(['getVariable', 'BUILDHISTORY_DIR']) + BUILDHISTORY_DIR, error = self.server.runCommand(['getVariable', 'BUILDHISTORY_DIR']) BUILDHISTORY_DIR_IMAGE = "%s/images/%s/%s/%s" % (BUILDHISTORY_DIR, MACHINE_ARCH, TCLIBC, target.target) self.internal_state['packages'] = {} diff --git a/bitbake/lib/toaster/bldviewer/templates/package.html b/bitbake/lib/toaster/bldviewer/templates/package.html index 642fcab9a15..c22e988e95d 100644 --- a/bitbake/lib/toaster/bldviewer/templates/package.html +++ b/bitbake/lib/toaster/bldviewer/templates/package.html @@ -19,12 +19,12 @@ {{package.name}} {{package.version}} {{package.size}} - - {{package.recipe.name}}{{package.package_name}} + {%if package.recipe %} + {{package.recipe.name}}{{package.package_name}}{%endif%} -
- {% for d in package.depends_on %} - {{d.name}}
+
+ {% for d in package.tpackage_dependencies_package.all %} + {{d.depends_on.name}}
{% endfor %}
-- 2.47.2