From 69b332c112b4ecefc8e27f2bb353622a0439c5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Thu, 6 Feb 2025 17:11:23 +0100 Subject: [PATCH] Fix cli.py --- dangerzone/updater/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dangerzone/updater/cli.py b/dangerzone/updater/cli.py index bc6d88fd3..69285eeb8 100644 --- a/dangerzone/updater/cli.py +++ b/dangerzone/updater/cli.py @@ -42,7 +42,7 @@ def upgrade(image: str, pubkey: str) -> None: @main.command() @click.argument("image_filename") -@click.option("--pubkey", default=PUBKEY_DEFAULT_LOCATION) +@click.option("--pubkey", default=signatures.DEFAULT_PUBKEY_LOCATION) def load_archive(image_filename: str, pubkey: str) -> None: """Upgrade the local image to the one in the archive.""" try: @@ -68,7 +68,7 @@ def prepare_archive(image: str, output: str) -> None: @main.command() @click.argument("image", default=DEFAULT_IMAGE_NAME) -@click.option("--pubkey", default=PUBKEY_DEFAULT_LOCATION) +@click.option("--pubkey", default=signatures.DEFAULT_PUBKEY_LOCATION) def verify_local(image: str, pubkey: str) -> None: """ Verify the local image signature against a public key and the stored signatures.