%{?  { 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
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to