<p>This adds %[ expr ] as a new means to do expression expansion in rpm. Unlike %{expr:} the expression is expanded in the parser, so we are safe against expansion results messing up the syntax and also can to short-circuiting.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/rpm-software-management/rpm/pull/846'>https://github.com/rpm-software-management/rpm/pull/846</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Add findMacroEnd() function to find the end of a macro call</li>
  <li>Add support for primary expansion to the expression parser</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/846/files#diff-0">build/parseSpec.c</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/846/files#diff-1">rpmio/Makefile.am</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/846/files#diff-2">rpmio/expression.c</a>
    (73)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/846/files#diff-3">rpmio/macro.c</a>
    (130)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/846/files#diff-4">rpmio/rpmmacro.h</a>
    (9)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/846.patch'>https://github.com/rpm-software-management/rpm/pull/846.patch</a></li>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/846.diff'>https://github.com/rpm-software-management/rpm/pull/846.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/846?email_source=notifications&email_token=ADLPZU3A3TGV7O5K4D2KS43QKIVKHA5CNFSM4IX64Y7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMEUSRQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU4A5DHAJQN5QNC6YQ3QKIVKHANCNFSM4IX64Y7A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU5XOEQAZHJT2UOFEOLQKIVKHA5CNFSM4IX64Y7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMEUSRQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/846?email_source=notifications\u0026email_token=ADLPZU3A3TGV7O5K4D2KS43QKIVKHA5CNFSM4IX64Y7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMEUSRQ",
"url": "https://github.com/rpm-software-management/rpm/pull/846?email_source=notifications\u0026email_token=ADLPZU3A3TGV7O5K4D2KS43QKIVKHA5CNFSM4IX64Y7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMEUSRQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>