support/graph-depends: allow excluding virtual packages
PATCH 1/1 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 <[email protected]>
Signed-off-by "Yann E. MORIN" <[email protected]>
--- support/scripts/graph-depends | 4 ++++ 1 file changed, 4 insertions(+)
support/scripts/graph-depends +4 -0
@@ -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)
Signature · 1 line
1.9.1
Thomas Petazzoni
AppliedPATCH 1/1 support/graph-depends: allow excluding virtual packages
Dear Yann E. MORIN,
Quoted 5 lines · Yann E. MORIN
Like for --stop-on, make --exclude recognise the keyword 'virtual', to stop on virtual packages (as explained in the help...).
Reported-by Thomas Petazzoni <[email protected]>Signed-off-by "Yann E. MORIN" <[email protected]>
Applied, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com