]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Enable repository key fetch for non-default ubuntu tools trees as well
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 2 Oct 2024 11:15:45 +0000 (13:15 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 2 Oct 2024 16:29:35 +0000 (18:29 +0200)
If we're building an rpm based distribution.

mkosi/config.py
mkosi/resources/man/mkosi.1.md

index 010c3047fd98e38201c58b35def4f531d81c2600..667cfe0d0bc81d97a44a254da9dbac3549ad4568 100644 (file)
@@ -808,7 +808,10 @@ def config_default_repository_key_fetch(namespace: argparse.Namespace) -> bool:
         return cast(bool, namespace.distribution.is_rpm_distribution())
 
     if namespace.tools_tree != Path("default"):
-        return False
+        return (
+            detect_distribution(namespace.tools_tree)[0] == Distribution.ubuntu
+            and namespace.distribution.is_rpm_distribution()
+        )
 
     return cast(
         bool,
index f131f77a3f3682e167d11fa1dee96f465db88463..15eff46883cc394b202348fd131f9b78d7367990 100644 (file)
@@ -483,10 +483,10 @@ boolean argument: either `1`, `yes`, or `true` to enable, or `0`, `no`,
 
 `RepositoryKeyFetch=`, `--repository-key-fetch=`
 :   Controls whether mkosi will fetch distribution GPG keys remotely. Enabled by
-    default on Ubuntu when not using a tools tree, disabled by default on all
-    other distributions. When disabled, the distribution GPG keys for the target distribution
-    have to be installed locally on the host system alongside the package manager for
-    that distribution.
+    default on Ubuntu when not using a tools tree or when using Ubuntu tools trees to build
+    rpm based distributions. Disabled by default on all other distributions. When disabled,
+    the distribution GPG keys for the target distribution have to be installed locally on the
+    host system alongside the package manager for that distribution.
 
     This setting is only implemented for distributions using dnf or zypper as their
     package manager. For other distributions the distribution GPG keys are always looked