diff options
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 8eafdc9f72..3823c664ab 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -446,13 +446,20 @@ buildhistory_get_installed() { | |||
446 | 446 | ||
447 | # Produce dependency graph | 447 | # Produce dependency graph |
448 | # First, quote each name to handle characters that cause issues for dot | 448 | # First, quote each name to handle characters that cause issues for dot |
449 | sed 's:\([^| ]*\):"\1":g' ${WORKDIR}/bh_installed_pkgs_deps.txt > $1/depends.tmp && \ | 449 | sed 's:\([^| ]*\):"\1":g' ${WORKDIR}/bh_installed_pkgs_deps.txt > $1/depends.tmp && |
450 | rm ${WORKDIR}/bh_installed_pkgs_deps.txt | 450 | rm ${WORKDIR}/bh_installed_pkgs_deps.txt |
451 | # Change delimiter from pipe to -> and set style for recommend lines | 451 | # Remove lines with rpmlib(...) and config(...) dependencies, change the |
452 | sed -i -e 's:|: -> :' -e 's:"\[REC\]":[style=dotted]:' -e 's:$:;:' $1/depends.tmp | 452 | # delimiter from pipe to "->", set the style for recommend lines and |
453 | # turn versioned dependencies into edge labels. | ||
454 | sed -i -e '/rpmlib(/d' \ | ||
455 | -e '/config(/d' \ | ||
456 | -e 's:|: -> :' \ | ||
457 | -e 's:"\[REC\]":[style=dotted]:' \ | ||
458 | -e 's:"\([<>=]\+\)" "\([^"]*\)":[label="\1 \2"]:' \ | ||
459 | $1/depends.tmp | ||
453 | # Add header, sorted and de-duped contents and footer and then delete the temp file | 460 | # Add header, sorted and de-duped contents and footer and then delete the temp file |
454 | printf "digraph depends {\n node [shape=plaintext]\n" > $1/depends.dot | 461 | printf "digraph depends {\n node [shape=plaintext]\n" > $1/depends.dot |
455 | cat $1/depends.tmp | sort | uniq >> $1/depends.dot | 462 | cat $1/depends.tmp | sort -u >> $1/depends.dot |
456 | echo "}" >> $1/depends.dot | 463 | echo "}" >> $1/depends.dot |
457 | rm $1/depends.tmp | 464 | rm $1/depends.tmp |
458 | 465 | ||