Description of problem: Package rpm-head-signing fails to build from source in Fedora Rawhide. ------------------------------------ + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' Traceback (most recent call last): File "/builddir/build/BUILD/rpm-head-signing-1.7.4-build/rpm-head-signing-1.7.4/setup.py", line 10, in <module> raise Exception("RPM version %s is not major version 4" % rpm_version) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ TypeError: not all arguments converted during string formatting ------------------------------------ Version-Release number of selected component (if applicable): 1.7.4-8.fc42 Steps to Reproduce: fedpkg build Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/rpm-head-signing
Rather than spawn an external rpm process and then parse the version out of it, this could just use: >>> rpm.__version__ '5.99.90' >>> rpm.__version_info__ ('5', '99', '90') That said, testing for versions tends to run into silly issues like this. It's far better to explicitly test for the actual features you care about instead.
*** Bug 2372216 has been marked as a duplicate of this bug. ***