Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
openEuler-Advisor
提交
ec8cba26
O
openEuler-Advisor
项目概览
openeuler
/
openEuler-Advisor
通知
32
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ec8cba26
编写于
8月 10, 2020
作者:
L
Leo Fang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bugfix for some rule and modify README.md
Signed-off-by:
N
Leo Fang
<
leofang_94@163.com
>
上级
def6640e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
24 addition
and
24 deletion
+24
-24
README.md
README.md
+21
-21
advisors/simple-update-robot.py
advisors/simple-update-robot.py
+3
-3
未找到文件。
README.md
浏览文件 @
ec8cba26
...
...
@@ -145,34 +145,34 @@ tag中版本的间隔符,如果 tag是 v1_0_1,然后配置separator 为"_"
### 3.2、Introduction of advisors
#### 3.2.1 Enviroment Setting
##### a. necessary packages install
pip3 install python-rpm-spec (ver:0.9)
pip3 install PyYAML (ver:5.3.1)
pip3 install python-rpm-spec (ver:0.9)
pip3 install PyYAML (ver:5.3.1)
##### b. json file config
~/.gitee_personal_token.json
content format: {"user":"user_name","access_token":"token_passwd"}
setting personal access token: https://gitee.com/profile/personal_access_tokens
~/.gitee_personal_token.json
content format: {"user":"user_name","access_token":"token_passwd"}
setting personal access token: https://gitee.com/profile/personal_access_tokens
#### 3.2.2 Use Instructions
##### a. simple-update-root.py
single package auto-upgrade: python3 simple-update-root.py -u pkg pkg_name branch_name
ep: python3 simple-update-root.py -u pkg snappy master
single package manual upgrade: python3 simple-update-root.py pkg_name branch_name [-fc] [-d] [-s] [-n new_version] [-p]
ep: python3 simple-update-root.py snappy openEuler-20.03-LTS -fc -d -s -n 1.8.1
multi-packages in a repo auto-upgrade: python3 simple-update-root.py -u repo repo_name branch_name
ep: python3 simple-update-root.py -u repo src_openEuler master
single package auto-upgrade: python3 simple-update-root.py -u pkg pkg_name branch_name
ep: python3 simple-update-root.py -u pkg snappy master
single package manual upgrade: python3 simple-update-root.py pkg_name branch_name [-fc] [-d] [-s] [-n new_version] [-p]
ep: python3 simple-update-root.py snappy openEuler-20.03-LTS -fc -d -s -n 1.8.1
multi-packages in a repo auto-upgrade: python3 simple-update-root.py -u repo repo_name branch_name
ep: python3 simple-update-root.py -u repo src_openEuler master
##### b. oa_upgradable.py
display all tags of target package: python3 oa_upgradable.py pkg_name
ep: python3 oa_upgradable.py glibc
display all tags of target package: python3 oa_upgradable.py pkg_name
ep: python3 oa_upgradable.py glibc
#### 3.2.3 Consultation for advisor:
if any problem, please contact: leo.fangyufa@huawei.com/leofang_94@163.com
if any problem, please contact: leo.fangyufa@huawei.com/leofang_94@163.com
### 3.3、checkabi 功能介绍
checkabi 功能依赖libabigail 软件包,使用checkabi 功能前需要安装libabigail ,checkabi 提供了2个功能,下面分别介绍。
...
...
advisors/simple-update-robot.py
浏览文件 @
ec8cba26
...
...
@@ -126,13 +126,13 @@ def create_spec(repo, spec_str, o_ver, n_ver, src_fn=None):
in_changelog
=
False
for
l
in
spec_str
.
splitlines
():
if
l
.
startswith
(
"Release:"
):
fn
.
write
(
re
.
sub
(
"\d"
,
"1"
,
l
)
+
"
\n
"
)
fn
.
write
(
re
.
sub
(
r
"\d"
,
"1"
,
l
)
+
"
\n
"
)
continue
if
l
.
startswith
(
"Source:"
)
or
l
.
startswith
(
"Source0:"
):
if
src_fn
:
fn
.
write
(
"Source: {src_fn}
\n
"
.
format
(
src_fn
=
src_fn
).
replace
(
o_ver
,
n_ver
))
else
:
fn
.
write
(
l
.
replace
(
o_ver
,
n_ver
)
+
"
\n
"
)
fn
.
write
(
l
.
replace
(
o_ver
,
n_ver
)
+
"
\n
"
)
continue
if
not
in_changelog
:
nl
=
l
.
replace
(
o_ver
,
n_ver
)
...
...
@@ -195,7 +195,7 @@ def auto_update_repo(gt, u_branch, u_repo):
pkg_list
=
pkg_info
.
get
(
"repositories"
)
for
pkg
in
pkg_list
:
pkg_name
=
pkg
.
get
(
"name"
)
print
(
"
\n
"
+
"------------------------Updating "
+
pkg_name
+
"------------------------"
)
print
(
"
\n
------------------------Updating "
+
pkg_name
+
"------------------------"
)
spec_str
=
gt
.
get_spec
(
pkg_name
,
u_branch
)
if
not
spec_str
:
print
(
"WARNING: {pkg}.spec can't be found on the {br} branch. "
.
format
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录