From 21f1ad55c596fc79ce17e3436ba30d1549cdcf38 Mon Sep 17 00:00:00 2001 From: Luigi Tagliamonte Date: Thu, 17 Nov 2016 12:40:13 -0800 Subject: [PATCH] exlude 4.9 from ubuntu repos (#685) --- scripts/kernel-crawler.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/kernel-crawler.py b/scripts/kernel-crawler.py index a5350d0335..7424cba72c 100755 --- a/scripts/kernel-crawler.py +++ b/scripts/kernel-crawler.py @@ -67,28 +67,32 @@ "root" : "https://mirrors.kernel.org/ubuntu/pool/main/l/", "discovery_pattern" : "/html/body//a[@href = 'linux/']/@href", "subdirs" : [""], - "page_pattern" : "/html/body//a[regex:test(@href, '^linux-(image|headers)-[3-9].*-generic.*amd64.deb$')]/@href" + "page_pattern" : "/html/body//a[regex:test(@href, '^linux-(image|headers)-[3-9].*-generic.*amd64.deb$')]/@href", + "exclude_patterns": ["image-4.9", "headers-4.9"] }, { "root" : "https://mirrors.kernel.org/ubuntu/pool/main/l/", "discovery_pattern" : "/html/body//a[@href = 'linux/']/@href", "subdirs" : [""], - "page_pattern" : "/html/body//a[regex:test(@href, '^linux-headers-[3-9].*_all.deb$')]/@href" + "page_pattern" : "/html/body//a[regex:test(@href, '^linux-headers-[3-9].*_all.deb$')]/@href", + "exclude_patterns": ["image-4.9", "headers-4.9"] }, { "root" : "http://security.ubuntu.com/ubuntu/pool/main/l/", "discovery_pattern" : "/html/body//a[@href = 'linux/']/@href", "subdirs" : [""], - "page_pattern" : "/html/body//a[regex:test(@href, '^linux-(image|headers)-[3-9].*-generic.*amd64.deb$')]/@href" + "page_pattern" : "/html/body//a[regex:test(@href, '^linux-(image|headers)-[3-9].*-generic.*amd64.deb$')]/@href", + "exclude_patterns": ["image-4.9", "headers-4.9"] }, { "root" : "http://security.ubuntu.com/ubuntu/pool/main/l/", "discovery_pattern" : "/html/body//a[@href = 'linux/']/@href", "subdirs" : [""], - "page_pattern" : "/html/body//a[regex:test(@href, '^linux-headers-[3-9].*_all.deb$')]/@href" + "page_pattern" : "/html/body//a[regex:test(@href, '^linux-headers-[3-9].*_all.deb$')]/@href", + "exclude_patterns": ["image-4.9", "headers-4.9"] } ],