]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add back compat for OBS until a new version is deployed
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 14 Feb 2025 09:20:40 +0000 (10:20 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 14 Feb 2025 09:53:37 +0000 (09:53 +0000)
See https://github.com/openSUSE/obs-build/pull/1059

mkosi/config.py

index 120292d4af3ff4b9a6d42d91ae5a348098b0469f..047f3f344734f627e52aab46916aaf72b975734a 100644 (file)
@@ -4076,6 +4076,9 @@ def create_argument_parser(chdir: bool = True) -> argparse.ArgumentParser:
                 metavar=s.metavar,
                 help=s.help if long == s.long else argparse.SUPPRESS,
                 action=ConfigAction,
+                # TODO: Remove once https://github.com/openSUSE/obs-build/pull/1059 is deployed in OBS.
+                nargs="?" if s.dest == "checksum" else None,
+                const="yes" if s.dest == "checksum" else None,
             )
 
     return parser