Skip to content

Commit c88882c

Browse files
committed
yum-sync: fix syntax error
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
1 parent ee17188 commit c88882c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

yum-sync.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,9 @@ def main():
195195
)
196196
args = parser.parse_args()
197197

198-
os_list = []
199198
raw_os_list = args.os_version.split(",")
200-
raw_os_list = replace_os_template(raw_os_list)
201-
for os_version in raw_os_list.split(","):
199+
os_list = replace_os_template(raw_os_list)
200+
for os_version in os_list:
202201
if "-" in os_version and "-stream" not in os_version:
203202
dash = os_version.index("-")
204203
os_list = os_list + [

0 commit comments

Comments
 (0)