Merge pull request 'Fixed slackware checker' (#12) from jtoft-rt-4117-slackware into master
Reviewed-on: #12 Reviewed-by: Raymond Li <raymo@csclub.uwaterloo.ca>
This commit is contained in:
commit
90bde5a754
|
@ -34,7 +34,7 @@ class slackware(Project):
|
||||||
hrefs2 = [i.attrs['href'] for i in s2.find_all("a")]
|
hrefs2 = [i.attrs['href'] for i in s2.find_all("a")]
|
||||||
|
|
||||||
for href in hrefs1: # for a href directories
|
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)
|
# print(href)
|
||||||
if href not in hrefs2:
|
if href not in hrefs2:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue