diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2018-06-27 13:29:36 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2018-06-27 14:49:39 +0300 |
commit | f9f85af2d3a73a31ee099c6da809be8ebdeb2dc3 (patch) | |
tree | a972ddfccf15bdd3cf3efb27b27fbe297bd80736 /tests/rpmvfylevel.at | |
parent | 60cbee157611875357d053f7fcdcb973c9625589 (diff) | |
download | rpm-f9f85af2d3a73a31ee099c6da809be8ebdeb2dc3.tar.gz |
Add a public API for controlling package verification flags
We can't use the existing transaction vsflags for package verification
purposes due to legacy misuses and fundamental differences - vsflags
defaults are very different and change can't really be relied on as
this is all tangled up in legacy issues, misuses and misunderstandings
in 3rd party code and whatnot. I dont see a way to unify them in
foreseeable future, unfortunately. So add another API...
Rename _vsflags_pkgverify to _pkgverify_flags to differentiate it from
the other vsflags (because it is different), add get/set API for it in
transaction sets and use where immediately obvious (but there's
the rpm cli install case left to deal with)
Diffstat (limited to 'tests/rpmvfylevel.at')
-rw-r--r-- | tests/rpmvfylevel.at | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rpmvfylevel.at b/tests/rpmvfylevel.at index 7eabad92c..17531b0fe 100644 --- a/tests/rpmvfylevel.at +++ b/tests/rpmvfylevel.at @@ -95,7 +95,7 @@ for dis in nomd5 nopld nopl nosha1 nosha2 nosha nohdr; do echo ${dis} runroot rpmkeys -Kv \ --define "_pkgverify_level ${lvl}" \ - --define "_vsflags_pkgverify ${vsf}" \ + --define "_pkgverify_flags ${vsf}" \ /data/RPMS/hello-2.0-1.x86_64.rpm; echo $? done ], @@ -319,7 +319,7 @@ for dis in nopls noplds nohdrs nosig; do echo ${dis} runroot rpmkeys -Kv \ --define "_pkgverify_level ${lvl}" \ - --define "_vsflags_pkgverify ${vsf}" \ + --define "_pkgverify_flags ${vsf}" \ /data/RPMS/hello-2.0-1.x86_64-signed.rpm; echo $? done ], |