graph-depends: Strip skeleton from dependency
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>
Tue, 14 Jul 2015 11:36:26 +0000 (13:36 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 14 Jul 2015 16:10:58 +0000 (18:10 +0200)
skeleton being a mandatory dependency, we don't want all our packages to
have a link back to that node, the graph would be awful.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/graph-depends

index c26e1e06dc5c10bef0318af1eeb7d30063915a03..5f77038241378c0ba3ab35c9432630553e33926c 100755 (executable)
@@ -271,16 +271,17 @@ def remove_transitive_deps(pkg,deps):
             new_d.append(d[i])
     return new_d
 
-# This function removes the dependency on the 'toolchain' package
-def remove_toolchain_deps(pkg,deps):
-    return [p for p in deps[pkg] if not p == 'toolchain']
+# This function removes the dependency on some 'mandatory' package, like the
+# 'toolchain' package, or the 'skeleton' package
+def remove_mandatory_deps(pkg,deps):
+    return [p for p in deps[pkg] if p not in ['toolchain', 'skeleton']]
 
 # This functions trims down the dependency list of all packages.
 # It applies in sequence all the dependency-elimination methods.
 def remove_extra_deps(deps):
     for pkg in list(deps.keys()):
         if not pkg == 'all':
-            deps[pkg] = remove_toolchain_deps(pkg,deps)
+            deps[pkg] = remove_mandatory_deps(pkg,deps)
     for pkg in list(deps.keys()):
         if not transitive or pkg == 'all':
             deps[pkg] = remove_transitive_deps(pkg,deps)