Deprication fix

This commit is contained in:
YourSandwich 2021-05-01 22:26:27 +02:00
parent 79d87a2029
commit a3e40967d2

View File

@ -18,7 +18,7 @@ KernelVerList = []
for m in project_href[::2]: for m in project_href[::2]:
KernelURL.append("https://archive.archlinux.org/packages/l/linux/"+m) KernelURL.append("https://archive.archlinux.org/packages/l/linux/"+m)
## Making complicated stuff to extract only the Kernal Version from the WebScrap ## Making complicated stuff to extract only the Kernel Version from the WebScrap
for t in project_href[::2]: for t in project_href[::2]:
KernelVer = os.popen("echo " + t + " | cut -d'.' -f1,2,3 | sed 's/.arc//g' | sed 's/-x86_64//g' | sed 's/.ar//g' | sed 's/h//g'") KernelVer = os.popen("echo " + t + " | cut -d'.' -f1,2,3 | sed 's/.arc//g' | sed 's/-x86_64//g' | sed 's/.ar//g' | sed 's/h//g'")
for i in KernelVer.read().split('\n')[::2]: for i in KernelVer.read().split('\n')[::2]: