[Rpm-maint] [rpm-software-management/rpm] Psmhook (PR #4181)

Panu Matilainen notifications at github.com
Wed Apr 15 11:14:05 UTC 2026


Only execute psm_pre and psm_post for the main package operation

These hooks getting called multiple times with no means to identify why it's getting called makes them impossible to use meaningfully. Only run the psm hooks on non-script goals: install, erase and restore. 

It is of course a change to what is now a public API semantics, but the former behavior is really a bug that we're fixing here.
    
With this change, the syslog plugin no longer emits duplicates and in a strange order at that.

Fixes: #1254

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add + use an internal macro for determining script-only install goals
  * Only execute psm_pre and psm_post for the main package operation

-- File Changes --

    M docs/manual/plugins.md (2)
    M lib/psm.cc (7)
    M lib/rpmte.cc (2)
    M lib/rpmte_internal.hh (2)
    M tests/rpmdevel.at (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/4181.patchhttps://github.com/rpm-software-management/rpm/pull/4181.diff
-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4181
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/4181 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260415/f3f2fddc/attachment-0001.htm>


More information about the Rpm-maint mailing list