bug#44239: [PATCH] Python double-digit version detection broken

2020-10-27 Thread Miro Hrončok
I would normally use an f-string or str.format() but I wanted to keep ancient Python version support. So I went with %-formatting. I've seen %u somewhere in the codebase already instead of %d, so I've decided to keep it consistent -- apparently I have failed and used %d in one of the places anyway

bug#44239: [PATCH] Python double-digit version detection broken

2020-10-26 Thread Miro Hrončok
The patch is https://src.fedoraproject.org/fork/churchyard/rpms/automake/raw/f8af40fe1fa92a3ea0a1520a9d5f0797d0019f0f/f/automake-1.16.2-python-version-multiple-digits.patch It includes doc update and the command line is: $ python3.10 -c 'import sys; print("%u.%u" % sys.version_info[:2])' 3.10