]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
config: Fix variable typo in parse_new_includes()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 19 Feb 2025 11:35:56 +0000 (12:35 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 19 Feb 2025 11:35:56 +0000 (12:35 +0100)
p might be Path("mkosi-tools") when a default config is included.
path contains the actual path to the resolved default config.

mkosi/config.py

index c55c37fea3f9ed788fb377afc315d003f38b2710..1d959e9994434e39732eefb8a1157f3e3125974c 100644 (file)
@@ -4368,7 +4368,7 @@ class ParseContext:
                 )
 
             with chdir(path if path.is_dir() else Path.cwd()):
-                self.parse_config_one(path if path.is_file() else Path.cwd(), parse_profiles=p.is_dir())
+                self.parse_config_one(path if path.is_file() else Path.cwd(), parse_profiles=path.is_dir())
 
     def finalize_value(self, setting: ConfigSetting[T]) -> Optional[T]:
         # If a value was specified on the CLI, it always takes priority. If the setting is a collection of