Skip to content

Commit

Permalink
Skip broken 4.13.x coreos alpha builds coreos/bugs#2239
Browse files Browse the repository at this point in the history
  • Loading branch information
bwolmarans committed Jul 18, 2018
1 parent af801a0 commit 5258b20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/kernel-crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Date: August 17th, 2015

import bz2
import re
import sqlite3
import sys
import tempfile
Expand Down Expand Up @@ -158,7 +159,8 @@
"subdirs" : [
""
],
"page_pattern" : "/html/body//a[regex:test(@href, '^[5-9][0-9][0-9]|current|[1][0-9]{3}')]/@href"
"page_pattern" : "/html/body//a[regex:test(@href, '^[5-9][0-9][0-9]|current|[1][0-9]{3}')]/@href",
"exclude_patterns": ["^15\d\d\."]
},

{
Expand Down Expand Up @@ -235,7 +237,7 @@

def exclude_patterns(repo, packages, base_url, urls):
for rpm in packages:
if "exclude_patterns" in repo and any(x in rpm for x in repo["exclude_patterns"]):
if "exclude_patterns" in repo and any(re.search(x, rpm) for x in repo["exclude_patterns"]):
continue
else:
urls.add(base_url + str(urllib2.unquote(rpm)))
Expand Down

0 comments on commit 5258b20

Please sign in to comment.