[Rpm-maint] [rpm-software-management/rpm] Add rpmlogOnce() and rpmlogReset() (PR #3417)
Florian Festi
notifications at github.com
Wed Oct 30 11:07:24 UTC 2024
These are internal only for now to allow us gain soem more confidence on the design.
rpmlogOnce allows showing a log message only once. rpmlogReset allows purging the list of known message keys for a given domain. This allows for different live times e.g. per transaction or per package.
Use in handleHdrVS. This does not add a new test case but various existing test cases fail when the NOKEY message is omited or shown more than once. The code uses the pointer to the rpmts object as a domain and resets it when the rpmts is freed.
Resolves: #3336
Resolves: #3333
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/3417
-- Commit Summary --
* Add rpmlogOnce() and rpmlogReset()
-- File Changes --
M lib/package.cc (31)
M lib/rpmts.cc (2)
M rpmio/rpmlog.cc (45)
A rpmio/rpmlog_internal.hh (23)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/3417.patch
https://github.com/rpm-software-management/rpm/pull/3417.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3417
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3417 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241030/5916cdbd/attachment-0001.html>
More information about the Rpm-maint
mailing list