Skip to contentSkip to conversation

support/graph-depends: allow excluding virtual packages

PATCH New Yann E. MORIN 2 participants 2 messages Mar 31, 2015 – Apr 1, 2015

lore
Share & tools
lore
#0 lore raw

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...).

---
 support/scripts/graph-depends | 4 ++++
 1 file changed, 4 insertions(+)
support/scripts/graph-depends +4 -0
index c1fc042..08ecc5a 100755
@@ -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
#1 lore raw

PATCH 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...).

Applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com