From 2fd2e464920e3de063247a1344fb930ade458d4d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 24 Mar 2024 03:18:24 +0100 Subject: [PATCH] gnulib-tool.py: Fix the modules indentation in --create-testdir' output. * pygnulib/GLTestDir.py (GLTestDir.execute): Use specified_modules instead of self.config.getModules(), since the latter may be empty. --- ChangeLog | 6 ++++++ pygnulib/GLTestDir.py | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0f8f5bb121..6f2c22b9b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-03-23 Bruno Haible + + gnulib-tool.py: Fix the modules indentation in --create-testdir' output. + * pygnulib/GLTestDir.py (GLTestDir.execute): Use specified_modules + instead of self.config.getModules(), since the latter may be empty. + 2024-03-23 Bruno Haible gnulib-tool.sh: Use a default auxdir in --extract-automake-snippet. diff --git a/pygnulib/GLTestDir.py b/pygnulib/GLTestDir.py index 7feddc0bfe..c618241bc9 100644 --- a/pygnulib/GLTestDir.py +++ b/pygnulib/GLTestDir.py @@ -269,10 +269,12 @@ class GLTestDir(object): bold_on = '\x1b[1m' bold_off = '\x1b[0m' print('Module list with included dependencies (indented):') + specified_modules_set = { str(module) + for module in specified_modules } for module in final_modules: - if str(module) in self.config.getModules(): + if str(module) in specified_modules_set: print(' %s%s%s' % (bold_on, module, bold_off)) - else: # if str(module) not in self.config.getModules() + else: # if str(module) not in specified_modules_set print(' %s' % module) # Generate lists of the modules. -- 2.39.5