]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Only do path logic in config_parse_dict() if value is not empty 2620/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 10 Apr 2024 18:56:16 +0000 (20:56 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 10 Apr 2024 19:31:13 +0000 (21:31 +0200)
mkosi/config.py

index b8f73c34cb1e85370b869fca1a31da4b86a975cd..06009c41886f9f0a3564a9cfccccecca0fb48ade 100644 (file)
@@ -840,7 +840,7 @@ def config_make_dict_parser(delimiter: str,
         if value is None:
             return {}
 
-        if allow_paths and "=" not in value:
+        if allow_paths and value and "=" not in value:
             if Path(value).is_dir():
                 for p in sorted(Path(value).iterdir()):
                     if p.is_dir():