mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 08:18:03 +02:00
contrib/rh-bkr: brew moved
This commit is contained in:
parent
5dcf4458b3
commit
fe42d5ed4e
2 changed files with 6 additions and 6 deletions
|
|
@ -91,11 +91,11 @@ Currently the following types are supported:
|
||||||
found files. Otherwise, a default regex is used that relevant packages.
|
found files. Otherwise, a default regex is used that relevant packages.
|
||||||
|
|
||||||
- brew://[ID](/[URIREGEX]): fetches URLs from
|
- brew://[ID](/[URIREGEX]): fetches URLs from
|
||||||
https://brewweb.devel.redhat.com/buildinfo?buildID=ID, i.e. from
|
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=ID, i.e. from
|
||||||
the officially build packages.
|
the officially build packages.
|
||||||
|
|
||||||
- brewtask://[ID](/[URIREGEX]): fetches URLs from
|
- brewtask://[ID](/[URIREGEX]): fetches URLs from
|
||||||
https://brewweb.devel.redhat.com/kinfo?taskID=ID, i.e. the builds
|
https://brewweb.engineering.redhat.com/brew/kinfo?taskID=ID, i.e. the builds
|
||||||
when doing a scratch build with rhpkg.
|
when doing a scratch build with rhpkg.
|
||||||
|
|
||||||
- repo:<baseurl>[/<regex-wildcard>.rpm]: fetches from a RPMMD (Yum) repository
|
- repo:<baseurl>[/<regex-wildcard>.rpm]: fetches from a RPMMD (Yum) repository
|
||||||
|
|
|
||||||
|
|
@ -422,7 +422,7 @@ class RpmSchemeJenkins(RpmScheme_ParseWebsite):
|
||||||
raise Exception("Could not detect any URLs on jenkins for '%s' (see %s%s/)" % (self.uri, RpmSchemeJenkins.jenkins_base_url, self._id))
|
raise Exception("Could not detect any URLs on jenkins for '%s' (see %s%s/)" % (self.uri, RpmSchemeJenkins.jenkins_base_url, self._id))
|
||||||
|
|
||||||
class RpmSchemeBrew(RpmScheme_ParseWebsite):
|
class RpmSchemeBrew(RpmScheme_ParseWebsite):
|
||||||
brew_base_url = 'https://brewweb.devel.redhat.com/'
|
brew_base_url = 'https://brewweb.engineering.redhat.com/brew/'
|
||||||
def __init__(self, uri, arch):
|
def __init__(self, uri, arch):
|
||||||
RpmScheme_ParseWebsite.__init__(self, uri, arch)
|
RpmScheme_ParseWebsite.__init__(self, uri, arch)
|
||||||
def parse_uri(self):
|
def parse_uri(self):
|
||||||
|
|
@ -449,9 +449,9 @@ class RpmSchemeBrew(RpmScheme_ParseWebsite):
|
||||||
def parse_urls(self, page):
|
def parse_urls(self, page):
|
||||||
found_anything = False
|
found_anything = False
|
||||||
if self._type == "brew":
|
if self._type == "brew":
|
||||||
p = 'href=[\'"](http://download.devel.redhat.com/brewroot/packages/[^\'"]*\.rpm)[\'"]'
|
p = 'href=[\'"](http://download.eng.bos.redhat.com/brewroot/packages/[^\'"]*\.rpm)[\'"]'
|
||||||
elif self._type == "brewtask":
|
elif self._type == "brewtask":
|
||||||
p = 'href=[\'"](http://download.devel.redhat.com/brewroot/work/tasks/[^\'"]*\.rpm)[\'"]'
|
p = 'href=[\'"](http://download.eng.bos.redhat.com/brewroot/work/tasks/[^\'"]*\.rpm)[\'"]'
|
||||||
|
|
||||||
for a in re.finditer(p, page):
|
for a in re.finditer(p, page):
|
||||||
found_anything = True
|
found_anything = True
|
||||||
|
|
@ -463,7 +463,7 @@ class RpmSchemeBrew(RpmScheme_ParseWebsite):
|
||||||
# when the task-id is the main-page, we have to repeat... search deeper.
|
# when the task-id is the main-page, we have to repeat... search deeper.
|
||||||
p2 = '<a href="(taskinfo\?taskID=[0-9]+)" class="taskclosed" title="closed">buildArch \(.*.rpm, %s\)</a>' % (self.arch_re)
|
p2 = '<a href="(taskinfo\?taskID=[0-9]+)" class="taskclosed" title="closed">buildArch \(.*.rpm, %s\)</a>' % (self.arch_re)
|
||||||
for a in re.finditer(p2, page):
|
for a in re.finditer(p2, page):
|
||||||
page = self.read_page('https://brewweb.devel.redhat.com/%s' % (a.group(1)))
|
page = self.read_page('https://brewweb.engineering.redhat.com/brew/%s' % (a.group(1)))
|
||||||
for a in re.finditer(p, page):
|
for a in re.finditer(p, page):
|
||||||
url = a.group(1)
|
url = a.group(1)
|
||||||
if self.is_matching_url(url):
|
if self.is_matching_url(url):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue