[Buildroot] [git commit] support/graph-depends: allow excluding virtual packages

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Apr 1 18:02:54 UTC 2015


commit: http://git.buildroot.net/buildroot/commit/?id=5bcfaaaf4eab0c1cd7df4859757d8e42126e8ae4
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Like for --stop-on, make --exclude recognise the keyword 'virtual',
to stop on virtual packages (as explained in the help...).

Reported-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 support/scripts/graph-depends |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends
index c1fc042..08ecc5a 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)


More information about the buildroot mailing list