Patchwork [RFC,1/2] buildhistory.bbclass: track also complementary package information

login
register
mail settings
Submitter Andreas Müller
Date Jan. 18, 2013, 12:41 p.m.
Message ID <1358512909-14714-2-git-send-email-schnitzeltony@googlemail.com>
Download mbox | patch
Permalink /patch/42879/
State Accepted
Commit ffdb003590d5c1d49d6c6a6710adf71397e4fb9b
Headers show

Comments

Andreas Müller - Jan. 18, 2013, 12:41 p.m.
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
 meta/classes/buildhistory.bbclass |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 0a5753f..4b80f07 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -318,6 +318,11 @@  buildhistory_get_image_installed() {
 	grep -v libc6 ${BUILDHISTORY_DIR_IMAGE}/depends-nokernel.dot | grep -v libgcc > ${BUILDHISTORY_DIR_IMAGE}/depends-nokernel-nolibc.dot
 	grep -v update_ ${BUILDHISTORY_DIR_IMAGE}/depends-nokernel-nolibc.dot > ${BUILDHISTORY_DIR_IMAGE}/depends-nokernel-nolibc-noupdate.dot
 	grep -v kernel_module ${BUILDHISTORY_DIR_IMAGE}/depends-nokernel-nolibc-noupdate.dot > ${BUILDHISTORY_DIR_IMAGE}/depends-nokernel-nolibc-noupdate-nomodules.dot
+
+	# add complementary package information
+	if [ -e ${WORKDIR}/complementary_pkgs.txt ]; then
+		cp ${WORKDIR}/complementary_pkgs.txt ${BUILDHISTORY_DIR_IMAGE}
+	fi
 }
 
 buildhistory_get_imageinfo() {