提交 fab4e4e2 编写于 作者: L Leo Fang

improve for get_yaml() and add tag except for some

Signed-off-by: NLeo Fang <leofang_94@163.com>
上级 ec8cba26
......@@ -133,19 +133,20 @@ Yours openEuler-Advisor.
"""
Get upstream yaml metadata for specific package
"""
yamlurl = self.advisor_url_template.format(package=pkg)
yamlurl = self.yamlfile_url_template.format(branch=br, package=pkg)
try:
resp = self.get_gitee(yamlurl)
except urllib.error.HTTPError:
resp = "Not found"
print("WARNING: {repo}.yaml can't be found in repo on {branch}".format(repo=pkg, branch=br))
if re.match("Not found", resp):
yamlurl = self.yamlfile_url_template.format(branch=br, package=pkg)
yamlurl = self.advisor_url_template.format(package=pkg)
try:
resp = self.get_gitee(yamlurl)
except urllib.error.HTTPError:
resp = "Not found"
if re.match("Not found", resp):
print("Cann't find yaml metadata for {package} from upstream-info.".format(package=pkg))
print("WARNING: {repo}.yaml can't be found in upstream-info too.".format(repo=pkg))
return False
else:
return resp
......
......@@ -8,3 +8,13 @@ nss:
- '334.20030307'
glibc:
- '9000'
kata-shim:
- '20191207'
kata-runtime:
- '20191207'
kata-proxy:
- '20191207'
kata-agent:
- '20191207'
kexec-tools:
- '200'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册