[Rpm-maint] [rpm-software-management/rpm] Logical op improvements (#855)

Michael Schroeder notifications at github.com
Tue Sep 24 08:55:31 UTC 2019


This commits change the handling of the logical operators. It allows to use strings as condition and also changes || and && to return the last evaluated term like in perl/python/ruby.

Fixes #852 
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add boolifyValue helper and use it in rpmExprBool
  * Disallow ternary operator with different types on the rhs
  * Use boolifyValue in the not operator
  * Change || and && operators to behave like perl/python/ruby

-- File Changes --

    M rpmio/expression.c (72)
    M tests/rpmmacro.at (34)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/855.patch
https://github.com/rpm-software-management/rpm/pull/855.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/855
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190924/ab0e6af5/attachment.html>


More information about the Rpm-maint mailing list