Skip to content

Commit

Permalink
Add support for mkosi.clean.d and drop mkosi.configure.d
Browse files Browse the repository at this point in the history
It makes sense to have multiple clean scripts, but with configuration we expect
a single output like with version and rootpw
  • Loading branch information
behrmann committed Sep 27, 2024
1 parent 87284b0 commit 0379474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkosi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,6 @@ def parse_ini(path: Path, only_sections: Collection[str] = ()) -> Iterator[tuple
section="Config",
parse=config_make_list_parser(delimiter=",", parse=make_path_parser()),
paths=("mkosi.configure",),
recursive_paths=("mkosi.configure.d/",),
help="Configure script to run before doing anything",
),
ConfigSetting(
Expand Down Expand Up @@ -2254,6 +2253,7 @@ def parse_ini(path: Path, only_sections: Collection[str] = ()) -> Iterator[tuple
section="Output",
parse=config_make_list_parser(delimiter=",", parse=make_path_parser()),
paths=("mkosi.clean",),
recursive_paths=("mkosi.clean.d",)
help="Clean script to run after cleanup",
),
# Content section
Expand Down

0 comments on commit 0379474

Please sign in to comment.