]> Savannah Git Hosting - gnulib.git/commitdiff
pygnulib.py: print main and tests modules iff present
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 1 Oct 2017 17:28:10 +0000 (20:28 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 1 Oct 2017 17:28:10 +0000 (20:28 +0300)
pygnulib.py

index 1aab3b3a8dbd47c6d87f777719fac169d07db482..e1d8d25c14aaf2d0e5bf470920dcb1cb3aa6a34f 100755 (executable)
@@ -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: