On 2/27/24 6:07 PM, Bruno Haible wrote: > When I wrote this piece of code (2022-08-05), it was for the --version > output. I had apparently overlooked that the method GLInfo.copyright > also gets used in other contexts than for processing the --version > option.
Ah I see. I probably should have grep'd for that function because I didn't notice it was used there. > In *files*, the copyright notice should contain the first and the last year > of modification; a range <first>-<last> is OK. [1] > > In *--version output*, the copyright notice should contain only the last year. > [2] That makes sense, thanks. I tried to run --version and got this: [collin@debian gnulib]$ gnulib-tool.py --version Traceback (most recent call last): File "/home/collin/.local/src/gnulib/pygnulib/main.py", line 1197, in <module> main() File "/home/collin/.local/src/gnulib/pygnulib/main.py", line 442, in main % (info.package(), info.date(), version, info.copyright(), ^^^^^^^^^^^ File "/home/collin/.local/src/gnulib/pygnulib/GLInfo.py", line 109, in date result = pattern.findall(result)[0] ~~~~~~~~~~~~~~~~~~~~~~~^^^ IndexError: list index out of range So, I'll have a look at that fixing that. :) Collin