[Rpm-maint] [rpm-software-management/rpm] Support triple operator for conditional shortcut (#115) (#746)

pavlinamv notifications at github.com
Wed Jun 12 10:03:57 UTC 2019


    %{?  { macro_name } : true  : false }
    %{?  { macro_name } : true             }
    %{?! { macro_name } : false : true  }
    %{?! { macro_name } : false           }
    
More detailed description of the notation:
* Between the first chars "%{?" resp. "%{!?" or "%{?!  there can not be a space.
* On the other hand around {condition} and :, there can but not need to be a space.
* In {condition}, there can be a space before or after macro_name.
    
So e.g. the following conditions are similar (from rpm point of view):
%{?{macro}:true:false}
%{? { macro } : true : false }
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Make chkexist variable in macro.c more general
  * Create a separate variable for storing parts of a macro
  * Support triple operator for conditional shortcut

-- File Changes --

    M rpmio/macro.c (187)
    M tests/rpmmacro.at (30)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/746.patch
https://github.com/rpm-software-management/rpm/pull/746.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/746
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190612/1b0194aa/attachment-0001.html>


More information about the Rpm-maint mailing list