Fixed slackware checker

This commit is contained in:
Justin Toft 2022-07-30 19:29:53 -04:00
parent 860d5c8e44
commit 55f3e7bcbe
Signed by untrusted user who does not match committer: jtoft
GPG Key ID: F583036268C8DFF6
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class slackware(Project):
hrefs2 = [i.attrs['href'] for i in s2.find_all("a")]
for href in hrefs1: # for a href directories
if href.endswith("/") and href != "../" and href != "/" and not href.startswith("/") and not re.match(r'slackware-([1-7]|8\.0).*', href) and href != "slackware-iso/" and href != "slackware-current/" and href != "slackware-pre-1.0-beta/" and href != "unsupported/":
if href.endswith("/") and href != "../" and href != "/" and not href.startswith("/") and not re.match(r'slackware-([1-7]|8\.0).*', href) and href != "slackware-iso/" and href != "slackware-current/" and href != "slackware-pre-1.0-beta/" and href != "unsupported/" and not href.startswith("http"):
# print(href)
if href not in hrefs2:
return False