From: Yann E. MORIN Date: Tue, 31 Mar 2015 22:34:14 +0000 (+0200) Subject: support/graph-depends: allow excluding virtual packages X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5bcfaaaf4eab0c1cd7df4859757d8e42126e8ae4;p=buildroot.git support/graph-depends: allow excluding virtual packages Like for --stop-on, make --exclude recognise the keyword 'virtual', to stop on virtual packages (as explained in the help...). Reported-by: Thomas Petazzoni Signed-off-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends index c1fc0429e4..08ecc5a383 100755 --- a/support/scripts/graph-depends +++ b/support/scripts/graph-depends @@ -333,6 +333,10 @@ def print_pkg_deps(depth, pkg): if fnmatch(d,p): add = False break + if dict_version.get(d) == "virtual" \ + and "virtual" in exclude_list: + add = False + break if add: print("%s -> %s" % (pkg_node_name(pkg), pkg_node_name(d))) print_pkg_deps(depth+1, d)