diff options
author | Frédéric Danis <frederic.danis@collabora.com> | 2019-11-29 12:40:11 +0100 |
---|---|---|
committer | Frédéric Danis <frederic.danis@collabora.com> | 2020-09-14 09:27:19 +0200 |
commit | 512db0435c506f1d11169dc6f312dd954b06cd2d (patch) | |
tree | 444160b78bcb68d1a22c3604313b07dff705b3e6 /bash/ostree | |
parent | 02a19b2c96d9f84d23dcd15b3f20e507f6573a4f (diff) | |
download | ostree-512db0435c506f1d11169dc6f312dd954b06cd2d.tar.gz |
bin/static-delta: Add command to verify delta signature
Add new "static-delta verify" sub-command.
This supports multiple keys to verify the static-delta file.
Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
Diffstat (limited to 'bash/ostree')
-rw-r--r-- | bash/ostree | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/bash/ostree b/bash/ostree index a7389bd7..34a38b20 100644 --- a/bash/ostree +++ b/bash/ostree @@ -1709,6 +1709,40 @@ _ostree_static_delta_show() { return 0 } +_ostree_static_delta_verify() { + local boolean_options=" + $main_boolean_options + " + + local options_with_args=" + --sign-type + --keys-file + --keys-dir + --repo + " + + local options_with_args_glob=$( __ostree_to_extglob "$options_with_args" ) + + case "$prev" in + --keys-file|--keys-dir|--repo) + __ostree_compreply_dirs_only + return 0 + ;; + $options_with_args_glob ) + return 0 + ;; + esac + + case "$cur" in + -*) + local all_options="$boolean_options $options_with_args" + __ostree_compreply_all_options + ;; + esac + + return 0 +} + _ostree_static_delta() { local subcommands=" apply-offline |