]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Ensure environment GNUGPHOME is an absolute path
authorNick Labich <nick@labich.org>
Thu, 27 Feb 2025 20:53:50 +0000 (15:53 -0500)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 27 Feb 2025 22:13:46 +0000 (23:13 +0100)
mkosi/config.py

index 2381db05b2203299307991ec7cfac4306069b7cc..754ab2fdd486428b668818d36358e92cb4d8fe68 100644 (file)
@@ -2046,7 +2046,7 @@ class Config:
         if dnf := os.getenv("MKOSI_DNF"):
             env["MKOSI_DNF"] = dnf
         if gnupghome := os.getenv("GNUPGHOME"):
-            env["GNUPGHOME"] = gnupghome
+            env["GNUPGHOME"] = os.fspath(Path(gnupghome).absolute())
 
         env |= dict(
             parse_environment(line)