[Rpm-maint] [rpm-software-management/rpm] Implement one-shot macro modifier <o> (PR #4169)
Panu Matilainen
notifications at github.com
Mon Apr 20 10:08:49 UTC 2026
@pmatilai commented on this pull request.
> @@ -724,7 +734,12 @@ doDefine(rpmMacroBuf mb, const std::string & str, int level, int expandbody, siz
}
/* Check for modifier compatibility */
- if (o && (flags & ME_LITERAL)) {
+ if (o && (flags & (ME_LITERAL|ME_ONESHOT))) {
+ rpmMacroBufErr(mb, 1, _("Macro %%%s has incompatible modifiers\n"), n);
Went with "Macro %s has modifiers incompatible with parametric macros" because that seems most accurate and informative of these variants.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4169?email_source=notifications&email_token=ADLPZU4V7FIL6GCS2NH3NE34WXZLDA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTIMJTHEYDKNRXGM42M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOS6XA4S7OJSXM2LFO5PW433UNFTGSY3BORUW63TTL5RWY2LDNM#discussion_r3109847587
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4169/review/4139056739 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260420/f99012c1/attachment-0001.htm>
More information about the Rpm-maint
mailing list