After upgrading rpm to 4.18.91-1.fc39, rpmconf crashes: # rpmconf -a --frontend=vimdiff Traceback (most recent call last): File "/usr/sbin/rpmconf", line 25, in <module> from rpmconf import rpmconf File "/usr/lib/python3.11/site-packages/rpmconf/rpmconf.py", line 47, in <module> rpm.setInterruptSafety(False) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'rpm' has no attribute 'setInterruptSafety' This is due to an intentional changes in librpm API. A proposed fix is at <https://src.fedoraproject.org/rpms/rpmconf/pull-request/4>. Reproducible: Always
I hope this is helpful to report, but when I implement the proposed patch, a new error is introduced: # rpmconf -a Traceback (most recent call last): File "/usr/sbin/rpmconf", line 105, in <module> main() File "/usr/sbin/rpmconf", line 95, in main rconf.run() File "/usr/lib/python3.11/site-packages/rpmconf/rpmconf.py", line 122, in run tested_files += self._handle_package(pkg_hdr) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/rpmconf/rpmconf.py", line 346, in _handle_package for conf_file in self.get_list_of_config(package): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/rpmconf/rpmconf.py", line 159, in get_list_of_config files = rpm.fi(package) # pylint: disable=no-member ^^^^^^ AttributeError: module 'rpm' has no attribute 'fi'. Did you mean: 'fd'?
Yes. rpm removed rpm.fi class in: commit 742be88cd97d95bae356a93f17ec0595b610cee7 Author: Panu Matilainen <pmatilai> Date: Fri Apr 8 12:18:33 2022 +0300 Drop the klunky and ugly rpm.fi python binding finally Update our lone test-case to use rpm.files instead I posted a new patch to upstream at <https://github.com/xsuchy/rpmconf/pull/53>.
Merged and built https://koji.fedoraproject.org/koji/taskinfo?taskID=103045328 Thank you all.