bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnulib-tool.py: Follow gnulib-tool changes, part 59.


From: Collin Funk
Subject: gnulib-tool.py: Follow gnulib-tool changes, part 59.
Date: Sat, 16 Mar 2024 15:13:16 -0700
User-agent: Mozilla Thunderbird

This patch just modifies the timestamp of 'config.h.in' after
executing 'autoheader'.

I've used the Pathlib touch function which I will admit looks a bit
strange [1]. I've tested it and it should update the timestamps
properly though.

My reasoning for this is that the 'constants.execute' command used
above it is a bit strange. I rather not add more opportunities for it
to break. When --verbose is used sp.call() uses shell=False. When it
is not, shell=True is used. Therefore I don't think we can use it to
call 'autoheader && touch config.h.in'.

I've left that function as-is for now, but I will probably get around
to cleaning it & it's callers eventually.

[1] https://docs.python.org/3/library/pathlib.html#pathlib.Path.touch

Collin

Attachment: 0001-gnulib-tool.py-Follow-gnulib-tool-changes-part-59.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]