]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
opensuse: Simplify error messages slightly
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 Jan 2026 18:25:08 +0000 (19:25 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 Jan 2026 18:46:23 +0000 (19:46 +0100)
mkosi/distribution/opensuse.py

index b6207476f45abaa8e22260799f3082bb4467a49f..173e4f34c028441f8f790bb5d3ec905d6ea8c64d 100644 (file)
@@ -266,7 +266,7 @@ def fetch_gpgkeys(context: Context) -> list[Path]:
                 if key.startswith("file://"):
                     path = key.removeprefix("file://").lstrip("/")
                     if not (context.config.tools() / path).exists():
-                        die(f"Local repository GPG key specified ({key}) but not found at /{path}")
+                        die(f"Local GPG key specified ({key}) but not found at /{path}")
 
                     files.add(context.config.tools() / path)
                 elif key.startswith("https://") and context.config.repository_key_fetch:
@@ -275,7 +275,7 @@ def fetch_gpgkeys(context: Context) -> list[Path]:
                     files.add(context.workspace / "keys" / Path(key).name)
                 else:
                     die(
-                        f"Remote repository GPG key specified ({key}) but RepositoryKeyFetch= is disabled",
+                        f"Remote GPG key specified ({key}) but RepositoryKeyFetch= is disabled",
                         hint="Enable RepositoryKeyFetch= or provide local keys",
                     )