@@ -93,7 +93,16 @@ def main(
9393 continue
9494
9595 if not image ["shortname" ].startswith (
96- ("almalinux" , "centos" , "debian" , "rocky" , "ubuntu" , "gardenlinux" , "talos" )
96+ (
97+ "almalinux" ,
98+ "centos" ,
99+ "debian" ,
100+ "rocky" ,
101+ "ubuntu" ,
102+ "gardenlinux" ,
103+ "talos" ,
104+ "flatcar" ,
105+ )
97106 ):
98107 continue
99108
@@ -112,7 +121,7 @@ def main(
112121 )
113122 _ , mirror_fileextension2 = os .path .splitext (mirror_filename )
114123
115- if not image ["shortname" ].startswith (("gardenlinux" , "talos" )):
124+ if not image ["shortname" ].startswith (("gardenlinux" , "talos" , "flatcar" )):
116125 mirror_filename = f"{ version ['version' ]} -{ image ['shortname' ]} "
117126
118127 if mirror_fileextension not in [".bz2" , ".zip" , ".xz" , ".gz" ]:
@@ -129,7 +138,9 @@ def main(
129138 )
130139 _ , source_fileextension2 = os .path .splitext (source_filename )
131140
132- if source_fileextension not in [".bz2" , ".zip" , ".xz" , ".gz" ]:
141+ if image ["shortname" ].startswith (("flatcar" )):
142+ mirror_dirname = os .path .join (mirror_dirname , version ["version" ])
143+ elif source_fileextension not in [".bz2" , ".zip" , ".xz" , ".gz" ]:
133144 source_filename += source_fileextension
134145 else :
135146 mirror_dirname = os .path .join (mirror_dirname , version ["version" ])
0 commit comments