[Rpm-maint] [rpm-software-management/rpm] Implement alternative transaction callback style (#1365)

Panu Matilainen notifications at github.com
Mon Sep 21 07:42:39 UTC 2020


Add API to get and set callback style, defaulting to the good ole
header first style and add a new style where a transaction element
is passed in place of the header, allowing a much saner interaction.

This is doubly so in Python, where the old style callback is a
braindamaged mess. In the new mode the "key" is not passed as separate
argument at all, it can be just as well retrieved via te.Key() for
the callbacks needing it.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1365

-- Commit Summary --

  * Implement alternative transaction callback style with transaction elements

-- File Changes --

    M lib/rpmts.c (25)
    M lib/rpmts.h (12)
    M lib/rpmts_internal.h (1)
    M python/rpm/transaction.py (4)
    M python/rpmts-py.c (45)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1365.patch
https://github.com/rpm-software-management/rpm/pull/1365.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1365
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200921/8e44a9ed/attachment.html>


More information about the Rpm-maint mailing list