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