Red Hat Bugzilla – Bug 1117102
[doc] configuring plugin search directories
Last modified: 2014-09-30 19:42:27 EDT
I think it would be nice that DNF should always search for plugins in system directory and as extra search plugins in directory specified by `pluginpath` variable. Can you consider it, please?
It would make installation of third-party plugins a bit easier. For instance, someone (me) creates some plugin. I create a package dnf-foo-plugin for it. That package will perform necessary things and copy foo.py into /usr/lib/python2.7/site-packages/dnf-plugins/ . With default fedora installation (and recent DNF) plugin should be ready to use, but when someone (other plugin developers, plugin users from git, ...) has set different `pluginpath` in dnf.conf, my plugin will not work and there will be necessary user effort to copy it to his `pluginpath`
Every time check what plugins are in /usr/lib/.../dnf-plugins/ . Next check if `pluginpath` is set to different directory and check its plugins. When some has same name, prefer that one from specified `pluginpath`.
Everyone who creates DNF plugin would copy his plugin into /usr/lib/.../dnf-plugins and be sure that it will work
What do you think? :-)
if I understand this correctly it involves some non-trivial manipulation of the 'pluginpath' configuration default which would make this hard to document cleanly and thus harder for users to comprehend. And we shouldn't compromise ease of use for developer convenience's sake.
However, I documented the 'pluginpath' configuration option in 16ccbc5 and I believe tweaking it should allow something similar to what is described in comment 0.
Thank you Aleš,
I just realized that `pluginpath` is actually list of paths, not only one path, so you have right, it should be solvable specifing both paths - to /usr and anywhere to arbitrary plugins. I am sorry, my fault.
I just tried it and found that paths can separated by commas, but I think it is not mentioned in docs. Can you please write some note there? Also I think people would be interested about paths order (which one has biggest priority? first/last).
hawkey-0.4.18-2.fc20, dnf-0.5.4-1.fc20, libsolv-0.6.4-0.git2a5c1c4.fc20 has been submitted as an update for Fedora 20.
hawkey-0.4.18-2.fc20, dnf-0.5.4-1.fc20, libsolv-0.6.4-0.git2a5c1c4.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.