aboutsummaryrefslogtreecommitdiff
path: root/support/scripts
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2015-04-01 00:34:14 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-01 20:02:54 +0200
commit5bcfaaaf4eab0c1cd7df4859757d8e42126e8ae4 (patch)
tree582c81835a81f863b4022f68e4716e78bd68dd80 /support/scripts
parentf9a016a93b2acac2db1a04869941c6c907901bb9 (diff)
downloadbuildroot-5bcfaaaf4eab0c1cd7df4859757d8e42126e8ae4.tar.gz
buildroot-5bcfaaaf4eab0c1cd7df4859757d8e42126e8ae4.tar.bz2
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 <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/scripts')
-rwxr-xr-xsupport/scripts/graph-depends4
1 files changed, 4 insertions, 0 deletions
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)