summaryrefslogtreecommitdiffstats
path: root/support/scripts/graph-depends
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-03-31 18:35:40 +0200
committerPeter Korsgaard <peter@korsgaard.com>2018-04-01 20:01:38 +0200
commit3cd92ac71199de25837af7ff4f7ab190c677ea66 (patch)
tree63f3fef11e52419f6cf657e91ead5526553ffad2 /support/scripts/graph-depends
parentf179394621e0ac5713c40cae4c50d341cf82de30 (diff)
downloadbuildroot-3cd92ac71199de25837af7ff4f7ab190c677ea66.tar.gz
buildroot-3cd92ac71199de25837af7ff4f7ab190c677ea66.zip
support/scripts/graph-depends: use colors instead of colours
The graph-depends was not very consistent in colors vs. colours: some parts were using colours, some parts were using colors. Let's settle on the US spelling, colors. This change the user-visble option --colours to --colors, but it is unlikely that a lot of users customize the colors through BR2_GRAPH_DEPS_OPTS, so this user interface change is considered reasonable. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support/scripts/graph-depends')
-rwxr-xr-xsupport/scripts/graph-depends16
1 files changed, 8 insertions, 8 deletions
diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends
index d86d506f6f..dc265ae28c 100755
--- a/support/scripts/graph-depends
+++ b/support/scripts/graph-depends
@@ -297,9 +297,9 @@ def parse_args():
"'host' to stop on host packages.")
parser.add_argument("--exclude", "-x", metavar="PACKAGE", dest="exclude_list", action="append",
help="Like --stop-on, but do not add PACKAGE to the graph.")
- parser.add_argument("--colours", "-c", metavar="COLOR_LIST", dest="colours",
+ parser.add_argument("--colors", "-c", metavar="COLOR_LIST", dest="colors",
default="lightblue,grey,gainsboro",
- help="Comma-separated list of the three colours to use" +
+ help="Comma-separated list of the three colors to use" +
" to draw the top-level package, the target" +
" packages, and the host packages, in this order." +
" Defaults to: 'lightblue,grey,gainsboro'")
@@ -353,12 +353,12 @@ def main():
get_depends_func = brpkgutil.get_rdepends
arrow_dir = "back"
- # Get the colours: we need exactly three colours,
+ # Get the colors: we need exactly three colors,
# so no need not split more than 4
- # We'll let 'dot' validate the colours...
- colours = args.colours.split(',', 4)
- if len(colours) != 3:
- sys.stderr.write("Error: incorrect colour list '%s'\n" % args.colours)
+ # We'll let 'dot' validate the colors...
+ colors = args.colors.split(',', 4)
+ if len(colors) != 3:
+ sys.stderr.write("Error: incorrect color list '%s'\n" % args.colors)
sys.exit(1)
# In full mode, start with the result of get_targets() to get the main
@@ -403,7 +403,7 @@ def main():
outfile.write("digraph G {\n")
print_pkg_deps(outfile, dict_deps, dict_version, stop_list, exclude_list,
- arrow_dir, 0, args.depth, rootpkg, colours)
+ arrow_dir, 0, args.depth, rootpkg, colors)
outfile.write("}\n")
OpenPOWER on IntegriCloud