summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2014-03-05 12:02:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-11 20:28:56 -0700
commit6029af2ec5f6a92b41c9e103625699e6ae2e6550 (patch)
treebc205b148729821b7df20fdc26c3244558d37b68 /meta
parentd1161cb4daf502d30983200652adbaa5b296b743 (diff)
downloadast2050-yocto-poky-6029af2ec5f6a92b41c9e103625699e6ae2e6550.zip
ast2050-yocto-poky-6029af2ec5f6a92b41c9e103625699e6ae2e6550.tar.gz
buildhistory.bbclass: Fix dependency files creation
Call the new python routines. [YOCTO #5904] (From OE-Core rev: 570baf4921a5b34cc97834e670b143073d136dea) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/buildhistory.bbclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 1a0e35d..5d0a229 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -321,6 +321,12 @@ python buildhistory_list_installed() {
with open(pkgs_list_file, 'w') as pkgs_list:
pkgs_list.write(list_installed_packages(d, 'file'))
+
+ pkgs_deps_file = os.path.join(d.getVar('WORKDIR', True),
+ "bh_installed_pkgs_deps.txt")
+
+ with open(pkgs_deps_file, 'w') as pkgs_deps:
+ pkgs_deps.write(list_installed_packages(d, 'deps'))
}
@@ -340,7 +346,8 @@ buildhistory_get_installed() {
# Produce dependency graph
# First, quote each name to handle characters that cause issues for dot
- rootfs_list_installed_depends | sed 's:\([^| ]*\):"\1":g' > $1/depends.tmp
+ cat ${WORKDIR}/bh_installed_pkgs_deps.txt | sed 's:\([^| ]*\):"\1":g' > $1/depends.tmp && \
+ rm ${WORKDIR}/bh_installed_pkgs_deps.txt
# Change delimiter from pipe to -> and set style for recommend lines
sed -i -e 's:|: -> :' -e 's:"\[REC\]":[style=dotted]:' -e 's:$:;:' $1/depends.tmp
# Add header, sorted and de-duped contents and footer and then delete the temp file
OpenPOWER on IntegriCloud