diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends index 85c9bf0a4f..51b69c44c0 100755 --- a/support/scripts/graph-depends +++ b/support/scripts/graph-depends @@ -183,9 +183,10 @@ def get_all_depends(pkgs): # The Graphviz "dot" utility doesn't like dashes in node names. So for -# node names, we strip all dashes. +# node names, we strip all dashes. Also, nodes can't start with a number, +# so we prepend an underscore. def pkg_node_name(pkg): - return pkg.replace("-", "") + return "_" + pkg.replace("-", "") TARGET_EXCEPTIONS = [