python3-pykickstart: fix options parse error

Backport a patch for python3-pykickstart to fix option parse error:

    File "/usr/lib64/python3.12/site-packages/pykickstart/options.py", line 185, in _parse_optional
      option = action.option_strings[0]
               ^^^^^^^^^^^^^^^^^^^^^
  AttributeError: 'tuple' object has no attribute 'option_strings'

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Kai Kang
2025-03-11 16:57:56 +08:00
committed by Khem Raj
parent 59b904920b
commit 5a2dcee4ac
2 changed files with 72 additions and 0 deletions
@@ -16,6 +16,7 @@ SRC_URI = "git://github.com/rhinstaller/pykickstart.git;protocol=https;branch=ma
file://0002-pykickstart-parser.py-add-lock-for-readKickstart-and.patch \
file://0003-comment-out-sections-shutdown-and-environment-in-gen.patch \
file://0004-load.py-retry-to-invoke-request-with-timeout.patch \
file://0005-options-adjust-to-behavior-change-in-upstream-_parse.patch \
"
SRCREV = "fa6c80c0e5c6bee29d089899a10d26e6f7f8afd8"