DNF post-transaction plugin with F38

I have been using a way to update my rkhunter db as a post-transaction plugin execution that I’ve described here rkhunter and dnf
It appears that this got broken after upgrade to 38 with the plugin just reporting the following:

For more information run:
    sudo tracer -iat 1684313594.8173504
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/dnf/plugin.py", line 107, in _caller
    getattr(plugin, method)()
  File "/usr/lib/python3.11/site-packages/dnf-plugins/post-transaction-actions.py", line 146, in transaction
    command = self._replace_vars(ts_item, a_command)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/dnf-plugins/post-transaction-actions.py", line 104, in _replace_vars
    result = libdnf.conf.ConfigParser_substitute(command, vardict)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'libdnf.conf' has no attribute 'ConfigParser_substitute'

Does anyone have a suggestion to fix this or a better solution for me to update my rkhunter information during package upgrades?

It looks like this is addressed already, ConfigParser.substitute · rpm-software-management/dnf-plugins-core@8790cb3 · GitHub

but I’m not sure when that update will reach Fedora 38.

3 Likes

Well, that’s a simple but effective typo. Thanks for the info. Just have to wait it out then for it to arrive or just do a quick modification to the affected file myself on the host as a temporary fix.

1 Like

A post was split to a new topic: Grep warning when running rkhunter