@@ -17,8 +17,8 @@ def purify(dirty):
1717
1818def debian ():
1919 global DATA , DATA_FILE_LOCATION
20- q = ['Debian_Bullseye_List .json' , 'Debian_Bookworm_List .json' ]
21- urls = ['http://ftp.debian.org/debian/dists/bullseye /main/binary-s390x/Packages.gz' , 'http://ftp.debian.org/debian/dists/bookworm /main/binary-s390x/Packages.gz' ]
20+ q = ['Debian_Bookworm_List .json' , 'Debian_Trixie_List .json' ]
21+ urls = ['http://ftp.debian.org/debian/dists/bookworm /main/binary-s390x/Packages.gz' , 'http://ftp.debian.org/debian/dists/trixie /main/binary-s390x/Packages.gz' ]
2222 file_name = [f'{ DATA_FILE_LOCATION } /{ x } ' for x in q ]
2323 for i in range (len (q )):
2424 try :
@@ -49,10 +49,10 @@ def debian():
4949 print (f"Saved!\n filename: { q [i ]} " )
5050
5151def opensuse ():
52- source_data = [[f"https://download.opensuse.org/ports/zsystems/tumbleweed/repo/oss/{ x } /?jsontable" for x in ['s390x' , 'noarch' ]],
53- [f"https://download.opensuse.org/distribution/leap/15.5 /repo/oss/{ x } /?jsontable" for x in ['s390x' , 'noarch' ]],
54- [f"https://download.opensuse.org/distribution/leap/15.6 /repo/oss/{ x } /?jsontable" for x in ['s390x' , 'noarch' ]]]
55- q = ['OpenSUSE_Tumbleweed.json' , 'OpenSUSE_Leap_15_5 .json' , 'OpenSUSE_Leap_15_6 .json' ]
52+ source_data = [[f"https://download.opensuse.org/ports/zsystems/tumbleweed/repo/oss/{ x } /?jsontable" for x in ['s390x' , 'noarch' ]],
53+ [f"https://download.opensuse.org/distribution/leap/15.6 /repo/oss/{ x } /?jsontable" for x in ['s390x' , 'noarch' ]],
54+ [f"https://download.opensuse.org/distribution/leap/16.0 /repo/oss/{ x } /?jsontable" for x in ['s390x' , 'noarch' ]]]
55+ q = ['OpenSUSE_Tumbleweed.json' , 'OpenSUSE_Leap_15_6 .json' , 'OpenSUSE_Leap_16_0 .json' ]
5656 regex_pattern = r"-(.*?)-"
5757 for i in range (len (source_data )):
5858 opensuse_list = []
@@ -114,7 +114,7 @@ def clefos():
114114
115115def fedora ():
116116 global DATA ,DATA_FILE_LOCATION
117- sources = [38 , 39 , 40 ]
117+ sources = [42 , 43 ]
118118 pkg_reg = r'<a href="(.*)\.rpm"'
119119 dirs = '0123456789abcdefghijklmnopqrstuvwxyz'
120120 for i in range (len (sources )):
@@ -157,7 +157,7 @@ def fedora():
157157
158158def almaLinux ():
159159 global DATA ,DATA_FILE_LOCATION
160- sources = [9 ]
160+ sources = [9 , 10 ]
161161 pkg_reg = r'<a href="(.*)\.rpm"'
162162 for i in range (len (sources )):
163163 results = []
@@ -187,7 +187,7 @@ def almaLinux():
187187
188188def rockylinux ():
189189 global DATA ,DATA_FILE_LOCATION
190- sources = [9 ]
190+ sources = [9 , 10 ]
191191 pkg_reg = r'<a href="(.*)\.rpm"'
192192 dirs = 'abcdefghijklmnopqrstuvwxyz'
193193 for i in range (len (sources )):
@@ -274,15 +274,6 @@ def getIBMValidatedOpenSourceList(oskey):
274274 data_json = json .loads (data )
275275 oskey_match = False
276276
277- if oskey == 'SLES_12' or oskey == 'all' :
278- oskey_match = True
279- opensuse12_list = getIBMValidatedSoftwareList (data = data_json , oskey = 'SLES 12.x' )
280- q = 'IBM_Validated_OSS_List_SLES_12.json'
281- file_name = f'{ DATA_FILE_LOCATION } /{ q } '
282- with open (file_name , 'w' ) as file :
283- json .dump (opensuse12_list , file , indent = 2 )
284- print (f"Saved!\n filename: { q } " )
285-
286277 if oskey == 'SLES_15' or oskey == 'all' :
287278 oskey_match = True
288279 opensuse15_list = getIBMValidatedSoftwareList (data = data_json , oskey = 'SLES 15.x' )
@@ -292,15 +283,6 @@ def getIBMValidatedOpenSourceList(oskey):
292283 json .dump (opensuse15_list , file , indent = 2 )
293284 print (f"Saved!\n filename: { q } " )
294285
295- if oskey == 'Ubuntu_20.04' or oskey == 'all' :
296- oskey_match = True
297- ubuntu2004_list = getIBMValidatedSoftwareList (data = data_json , oskey = 'Ubuntu 20.x' )
298- q = 'IBM_Validated_OSS_List_Ubuntu_2004.json'
299- file_name = f'{ DATA_FILE_LOCATION } /{ q } '
300- with open (file_name , 'w' ) as file :
301- json .dump (ubuntu2004_list , file , indent = 2 )
302- print (f"Saved!\n filename: { q } " )
303-
304286 if oskey == 'Ubuntu_22.04' or oskey == 'all' :
305287 oskey_match = True
306288 ubuntu2204_list = getIBMValidatedSoftwareList (data = data_json , oskey = 'Ubuntu 22.x' )
@@ -310,32 +292,30 @@ def getIBMValidatedOpenSourceList(oskey):
310292 json .dump (ubuntu2204_list , file , indent = 2 )
311293 print (f"Saved!\n filename: { q } " )
312294
313- if oskey == 'RHEL_9 ' or oskey == 'all' :
295+ if oskey == 'Ubuntu_24.04 ' or oskey == 'all' :
314296 oskey_match = True
315- rhel9_list = getIBMValidatedSoftwareList (data = data_json , oskey = 'RHEL 9 .x' )
316- q = 'IBM_Validated_OSS_List_RHEL_9 .json'
297+ ubuntu2404_list = getIBMValidatedSoftwareList (data = data_json , oskey = 'Ubuntu 24 .x' )
298+ q = 'IBM_Validated_OSS_List_Ubuntu_2404 .json'
317299 file_name = f'{ DATA_FILE_LOCATION } /{ q } '
318300 with open (file_name , 'w' ) as file :
319- json .dump (rhel9_list , file , indent = 2 )
301+ json .dump (ubuntu2404_list , file , indent = 2 )
320302 print (f"Saved!\n filename: { q } " )
321303
322- if oskey == 'RHEL_8 ' or oskey == 'all' :
304+ if oskey == 'RHEL_9 ' or oskey == 'all' :
323305 oskey_match = True
324- rhel8_list = getIBMValidatedSoftwareList (data = data_json , oskey = 'RHEL 8.x/7 .x' )
325- q = 'IBM_Validated_OSS_List_RHEL_8 .json'
306+ rhel9_list = getIBMValidatedSoftwareList (data = data_json , oskey = 'RHEL 9 .x' )
307+ q = 'IBM_Validated_OSS_List_RHEL_9 .json'
326308 file_name = f'{ DATA_FILE_LOCATION } /{ q } '
327309 with open (file_name , 'w' ) as file :
328- json .dump (rhel8_list , file , indent = 2 )
310+ json .dump (rhel9_list , file , indent = 2 )
329311 print (f"Saved!\n filename: { q } " )
330312
331313 if not oskey_match :
332- os_versions = ['SLES 12.x' , 'SLES 15.x' , 'Ubuntu 20 .x' , 'Ubuntu 22.x' , 'RHEL 8.x/7 .x' , 'RHEL 9.x' ]
314+ os_versions = ['SLES 15.x' , 'Ubuntu 22 .x' , 'Ubuntu 24 .x' , 'RHEL 9.x' ]
333315 os_versions_dict = {
334- 'SLES 12.x' : 'SLES_12' ,
335316 'SLES 15.x' : 'SLES_15' ,
336- 'Ubuntu 20.x' : 'Ubuntu_2004' ,
337317 'Ubuntu 22.x' : 'Ubuntu_2204' ,
338- 'RHEL 8.x/7.x ' : 'RHEL_8 ' ,
318+ 'Ubuntu 24.x ' : 'Ubuntu_2404 ' ,
339319 'RHEL 9.x' : 'RHEL_9'
340320 }
341321
0 commit comments