[Rpm-maint] [rpm-software-management/rpm] Implement -e(xpand) and -g(lobal) options to %define (PR #4194)

Panu Matilainen notifications at github.com
Wed Apr 29 06:50:37 UTC 2026


@pmatilai commented on this pull request.



> @@ -608,6 +609,30 @@ doDefine(rpmMacroBuf mb, const std::string & str, int level, int expandbody, siz
     int flags = ME_NONE;
     std::string name, opts, mods, body;
 
+    /* Parse options if enabled */
+    while (handleopts) {
+	SKIPBLANK(s, c);
+	if (*s == '-') {
+	    while (!risblank(*(++s))) {
+		switch (*s) {
+		case 'e':
+		    expandbody = 1;
+		    break;
+		case 'g':
+		    level = RMIL_GLOBAL;
+		    break;
+		default:

Done.

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

Message ID: <rpm-software-management/rpm/pull/4194/review/4194720309 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260428/4e5dbabe/attachment.htm>


More information about the Rpm-maint mailing list