8000 Doc: Use `dnf --setopt=pluginpath` instead of installing plugin globally · fedora-python/portingdb@74a69b7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 74a69b7

Browse files
committed
Doc: Use dnf --setopt=pluginpath instead of installing plugin globally
1 parent c68eb95 commit 74a69b7

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

docs/update_portingdb.rst

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,12 @@ To use the portingdb update scripts, you will need to install and configure the
88

99
#. Ensure that you run Fedora 28 or higher.
1010

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

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

1515
Note that you cannot use Python virtual environments for this.
1616

17-
#. Put ``py3query.py`` in DNF plugin directory::
18-
19-
$ sudo cp dnf-plugins/py3query.py /usr/lib/pythonX.Y/site-packages/dnf-plugins/
20-
21-
Note: replace ``pythonX.Y`` with the Python version of your system.
22-
23-
#. Install the rawhide repo definitions::
24-
25-
$ sudo dnf install fedora-repos-rawhide
26-
2717
#. Install portingdb into your virtualenv::
2818

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

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

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

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

0 commit comments

Comments
 (0)
0