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:59:37 +0000 |
commit | 3cce3196fae496f59e5ee5999d16ccd1fa119e31 (patch) | |
tree | 45b25ad516ee89ada50637aa866ed98faa19cd2d | |
parent | 7b3ea97051cf2e3990e4dac5a4b0ac9a539c3227 (diff) | |
download | poky-3cce3196fae496f59e5ee5999d16ccd1fa119e31.tar.gz |
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).
(From OE-Core rev: 830df6067c1ea4a5aab580b42ba7e1e84fe1bcbf)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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() { | |||
286 | echo $pkgsize $pkg >> ${BUILDHISTORY_DIR_IMAGE}/installed-package-sizes.tmp | 286 | echo $pkgsize $pkg >> ${BUILDHISTORY_DIR_IMAGE}/installed-package-sizes.tmp |
287 | fi | 287 | fi |
288 | 288 | ||
289 | deps=`list_package_depends $pkg` | 289 | deps=`list_package_depends $pkg | sort | uniq` |
290 | for dep in $deps ; do | 290 | for dep in $deps ; do |
291 | echo "$pkg OPP $dep;" | sed -e 's:-:_:g' -e 's:\.:_:g' -e 's:+::g' | sed 's:OPP:->:g' >> ${BUILDHISTORY_DIR_IMAGE}/depends.dot | 291 | echo "$pkg OPP $dep;" | sed -e 's:-:_:g' -e 's:\.:_:g' -e 's:+::g' | sed 's:OPP:->:g' >> ${BUILDHISTORY_DIR_IMAGE}/depends.dot |
292 | done | 292 | done |
293 | 293 | ||
294 | recs=`list_package_recommends $pkg` | 294 | recs=`list_package_recommends $pkg | sort | uniq` |
295 | for rec in $recs ; do | 295 | for rec in $recs ; do |
296 | 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 | 296 | 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 |
297 | done | 297 | done |