[Rpm-maint] [rpm-software-management/rpm] Support triple operator for conditional shortcut (#115) (#746)
%{? { 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
[Rpm-maint] [rpm-software-management/rpm] Fix rpmVerifySignatures() passing garbage as verify flags in rpm >= 4.14 (#747)
Commit a239ddefa90575ce80ed4436beb4005a97e32644 changed rpmpkgVerifySigs() to accept fine-grained vsflags instead of query/verify style nosignature/nodigest hammers, but rpmVerifySignatures() didn't get updated accordingly. This will cause most unexpect behavior (in particular in 4.14.x), for example QUERY_DIGEST which was used for disabling all digest verification was defined as (1 << 19), which happens to be the same as RPMVSF_NORSA which is how it would now be treated. Similarly confusion with VERIFY_SCRIPT becoming RPMVSF_NODSA etc. Just use the transaction verify flags instead, and mark the qva argument as unused. It's an API change but that's okay in 4.15, and it's also an explicit breakage at compile time (due to those DIGEST/SIGNATURE symbols removal). In 4.14.x this is a regression but can be fixed within the API. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/747 -- Commit Summary -- * Fix rpmVerifySignatures() passing garbage as verify flags in rpm >= 4.14 -- File Changes -- M lib/rpmchecksig.c (3) M lib/rpmcli.h (2) -- Patch Links -- https://github.com/rpm-software-management/rpm/pull/747.patch https://github.com/rpm-software-management/rpm/pull/747.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/747 ___ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint