[Rpm-maint] [rpm] Add RPMCALLBACK_ELEM_PROGRESS callback type (#36)
notifications at github.com
Tue Dec 8 17:45:22 UTC 2015
Currently, there's no callback type that would be issued per each
transaction element. RPMCALLBACK_TRANS_ST* are only issued during the
prepare phase but not when packages are actually installed or erased.
Likewise, RPMCALLBACK_INST_ST* and RPMCALLBACK_UNINST_ST* won't be
issued if an install or erase operation is skipped for some reason (a
script or a package upgrade failure).
Having such a callback would allow the Python API consumers to properly
track the currently processed element. This is important since not
every callback type carries enough data about the subject package; while
the INST types provide the user object passed to a former addInstall
call, the UNINST types only provide the package name (which may not be
unique within the transaction set).
This commit adds such a callback, that is issued every time a new
element from the set is about to be processed.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* Add RPMCALLBACK_ELEM_PROGRESS callback type
-- File Changes --
M lib/rpmcallback.h (1)
M lib/transaction.c (4)
M python/rpmmodule.c (1)
-- Patch Links --
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpm-maint