Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
openEuler-Advisor
提交
fab4e4e2
O
openEuler-Advisor
项目概览
openeuler
/
openEuler-Advisor
通知
47
Star
4
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openEuler-Advisor
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
fab4e4e2
编写于
8月 10, 2020
作者:
L
Leo Fang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
improve for get_yaml() and add tag except for some
Signed-off-by:
N
Leo Fang
<
leofang_94@163.com
>
上级
ec8cba26
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
3 deletion
+14
-3
advisors/gitee.py
advisors/gitee.py
+4
-3
advisors/helper/ver_rec_excpt.yaml
advisors/helper/ver_rec_excpt.yaml
+10
-0
未找到文件。
advisors/gitee.py
浏览文件 @
fab4e4e2
...
...
@@ -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
...
...
advisors/helper/ver_rec_excpt.yaml
浏览文件 @
fab4e4e2
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录