mirror of
https://github.com/Snigdha-OS/snigdhaos-kernel-switcher-dev.git
synced 2025-09-15 01:54:57 +02:00
🐛 fix(_lib): re error has been fixed
This commit is contained in:
@@ -219,7 +219,7 @@ def getOfficialKernels(self):
|
|||||||
waitForResponse(ResponseQueue)
|
waitForResponse(ResponseQueue)
|
||||||
session.close()
|
session.close()
|
||||||
for kernel in ResponseContent:
|
for kernel in ResponseContent:
|
||||||
parse_archive_html(ResponseContent[kernel], kernel)
|
parseArchiveHtml(ResponseContent[kernel], kernel)
|
||||||
if len(FetchedKernelsDict) > 0:
|
if len(FetchedKernelsDict) > 0:
|
||||||
writeCache()
|
writeCache()
|
||||||
readCache(self)
|
readCache(self)
|
||||||
@@ -244,7 +244,8 @@ def waitForResponse(ResponseQueue):
|
|||||||
break
|
break
|
||||||
if len(SupportedKernelDict) == len(items):
|
if len(SupportedKernelDict) == len(items):
|
||||||
break
|
break
|
||||||
|
|
||||||
|
import re
|
||||||
def parseArchiveHtml(response, LinuxKernel):
|
def parseArchiveHtml(response, LinuxKernel):
|
||||||
for line in response.splitlines():
|
for line in response.splitlines():
|
||||||
if "<a href=" in line.strip():
|
if "<a href=" in line.strip():
|
||||||
|
Reference in New Issue
Block a user