yum-sync: fix critical argument parsing error

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
Shengqi Chen 2025-09-18 21:26:23 +08:00
parent c88882cf6c
commit 27dddc7240
No known key found for this signature in database

View File

@ -196,8 +196,9 @@ def main():
args = parser.parse_args()
raw_os_list = args.os_version.split(",")
os_list = replace_os_template(raw_os_list)
for os_version in os_list:
raw_os_list = replace_os_template(raw_os_list)
os_list = []
for os_version in raw_os_list:
if "-" in os_version and "-stream" not in os_version:
dash = os_version.index("-")
os_list = os_list + [