Description of problem:
The progress() method of the TransactionProgress class works with a number of "action" constants:
As the action constants correspond to events that might happen during a transaction it can be expected that that also the constants (or at least some of them) can only show up in some order. Eq. PKG_INSTALL for a package will always show up before PKG_VERIFY, TRANS_POST shows up at the very end, etc.
But the action/constant order is currently not documented, which might complicate usage of this API.
Version-Release number of selected component (if applicable):
Read the docs: Revision e5d2e280.
Steps to Reproduce:
1. go to the DNF callback documentation: http://dnf.readthedocs.io/en/latest/api_callback.html#dnf.callback.TransactionProgress.progress
2. try to find out the order of the action constants
The order of the action constants is currently not documented.
The order of the action constants is documented, so API users can make current assumptions when writing their code.
A small typo in the description: "users can make *cprrect* assumptions when writing their code."
(In reply to Martin Kolman from comment #1)
> A small typo in the description: "users can make *cprrect* assumptions when
> writing their code."
We will improve the doc. It should be done together with bug 1411423.
we should revert dnf commit which removes RPM callbacks.
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.
I tried to fulfill your request. Here is pull request: https://github.com/rpm-software-management/dnf/pull/763.
dnf-2.2.0-1.fc26, libdnf-0.8.0-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-65586fa42b
dnf-2.2.0-1.fc26, libdnf-0.8.0-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.