Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc: Use dnf --setopt=pluginpath instead of installing plugin globally #725

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions docs/update_portingdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,12 @@ To use the portingdb update scripts, you will need to install and configure the

#. Ensure that you run Fedora 28 or higher.

#. Install system-wide dependencies::
#. Install system-wide dependencies and rawhide repo definitions::

$ sudo dnf install python3-bugzilla python3-libarchive-c
$ sudo dnf install python3-bugzilla python3-libarchive-c fedora-repos-rawhide

Note that you cannot use Python virtual environments for this.

#. Put ``py3query.py`` in DNF plugin directory::

$ sudo cp dnf-plugins/py3query.py /usr/lib/pythonX.Y/site-packages/dnf-plugins/

Note: replace ``pythonX.Y`` with the Python version of your system.

#. Install the rawhide repo definitions::

$ sudo dnf install fedora-repos-rawhide

#. Install portingdb into your virtualenv::

(venv) $ pip install --editable . # Mind the dot at the end!
Expand All @@ -39,7 +29,7 @@ The following steps are needed to update pordingdb data:

#. Get the Python 3 porting status using ``py3query`` dnf plugin. Use ``-o`` option to write the output directly to ``fedora.json``::

$ dnf-3 --repo=rawhide --repo=rawhide-source py3query --refresh --installroot=/tmp/empty-install-root -o data/fedora.json
$ dnf-3 --setopt=pluginpath=dnf-plugins/ --repo=rawhide --repo=rawhide-source py3query --refresh --installroot=/tmp/empty-install-root -o data/fedora.json

#. Compare statuses of packages in the new JSON file::

Expand Down
Loading