diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-02-13 15:53:47 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-21 17:48:05 +0000 |
commit | 830df6067c1ea4a5aab580b42ba7e1e84fe1bcbf (patch) | |
tree | 8b93ce2e93c56697142eec595180b46c0efbced6 /meta/classes/buildhistory.bbclass | |
parent | 200159125eb6bcfc046c45cf5160b2eb340625e3 (diff) | |
download | openembedded-core-830df6067c1ea4a5aab580b42ba7e1e84fe1bcbf.tar.gz openembedded-core-830df6067c1ea4a5aab580b42ba7e1e84fe1bcbf.tar.bz2 openembedded-core-830df6067c1ea4a5aab580b42ba7e1e84fe1bcbf.zip |
classes/buildhistory: sort and de-dupe dependency graphs
Sort dependencies of each package which sometimes change order and cause
noise in the buildhistory repo, and at the same time remove duplicates
(which seem to be common especially for the RPM package query output).
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index d1a9670c29..0ee6a3391c 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -286,12 +286,12 @@ buildhistory_get_image_installed() { echo $pkgsize $pkg >> ${BUILDHISTORY_DIR_IMAGE}/installed-package-sizes.tmp fi - deps=`list_package_depends $pkg` + deps=`list_package_depends $pkg | sort | uniq` for dep in $deps ; do echo "$pkg OPP $dep;" | sed -e 's:-:_:g' -e 's:\.:_:g' -e 's:+::g' | sed 's:OPP:->:g' >> ${BUILDHISTORY_DIR_IMAGE}/depends.dot done - recs=`list_package_recommends $pkg` + recs=`list_package_recommends $pkg | sort | uniq` for rec in $recs ; do echo "$pkg OPP $rec [style=dotted];" | sed -e 's:-:_:g' -e 's:\.:_:g' -e 's:+::g' | sed 's:OPP:->:g' >> ${BUILDHISTORY_DIR_IMAGE}/depends.dot done |