From: Dmitry Selyutin Date: Sun, 1 Oct 2017 17:28:10 +0000 (+0300) Subject: pygnulib.py: print main and tests modules iff present X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0a577e7562097fcb331b21f451d7ec11399bfc4;p=thirdparty%2Fgnulib.git pygnulib.py: print main and tests modules iff present --- diff --git a/pygnulib.py b/pygnulib.py index 1aab3b3a8d..e1d8d25c14 100755 --- a/pygnulib.py +++ b/pygnulib.py @@ -78,9 +78,11 @@ def import_hook(script, gnulib, namespace, verbosity, options, *args, **kwargs): print("Main module list:", file=sys.stdout) for module in sorted(main): print(" {0}".format(module.name), file=sys.stdout) + print("" if main else "\n", end="") print("Tests-related module list:", file=sys.stdout) for module in sorted(tests): print(" {0}".format(module.name), file=sys.stdout) + print("" if tests else "\n", end="") # Determine if dummy needs to be added to main or test sets. if "dummy" not in config.avoid: