Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
openEuler-Advisor
提交
5d68f40d
O
openEuler-Advisor
项目概览
openeuler
/
openEuler-Advisor
通知
41
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看板
提交
5d68f40d
编写于
9月 02, 2020
作者:
Z
zt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改未找到组件的变量名字为not_fd_com,增强可读性,删除多余注释内容
上级
3e92a0d9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
12 deletion
+6
-12
packageship/packageship/application/apps/package/function/searchdb.py
...packageship/application/apps/package/function/searchdb.py
+0
-6
packageship/packageship/application/apps/package/function/self_depend.py
...kageship/application/apps/package/function/self_depend.py
+6
-6
未找到文件。
packageship/packageship/application/apps/package/function/searchdb.py
浏览文件 @
5d68f40d
...
...
@@ -225,8 +225,6 @@ class SearchDB():
return_tuple
=
namedtuple
(
'return_tuple'
,
'subpack_name search_version search_name'
)
for
search_name
in
search_set
:
# LOGGER.logger.warning("Can't not find " +
# search_name + " subpack in all database")
result_list
.
append
(
(
return_tuple
(
None
,
None
,
search_name
),
'NOT_FOUND'
))
return
ResponseCode
.
SUCCESS
,
result_list
...
...
@@ -309,8 +307,6 @@ class SearchDB():
if
not_found_binary
:
for
key
,
values
in
not_found_binary
.
items
():
# LOGGER.logger.warning(
# "CANNOT FOUND THE component" + key + " in all database")
for
info
in
values
:
obj
=
return_tuple
(
info
[
0
],
...
...
@@ -372,8 +368,6 @@ class SearchDB():
if
not
not_found_binary
:
return
result_list
if
not_found_binary
:
# for key, values in not_found_binary.items():
# LOGGER.logger.warning("CANNOT FOUND THE component" + key + " in all database")
for
key
,
values
in
not_found_binary
.
items
():
for
info
in
values
:
obj
=
return_tuple
(
...
...
packageship/packageship/application/apps/package/function/self_depend.py
浏览文件 @
5d68f40d
...
...
@@ -131,10 +131,10 @@ class SelfDepend():
Raises:
"""
self
.
result_tmp
.
clear
()
_
,
self
.
result_tmp
,
not_fd_
install
=
\
_
,
self
.
result_tmp
,
not_fd_
com
=
\
install_depend
(
self
.
db_list
).
query_install_depend
(
self
.
search_install_list
,
self
.
binary_dict
.
dictionary
)
self
.
not_found_components
.
update
(
not_fd_
install
)
self
.
not_found_components
.
update
(
not_fd_
com
)
self
.
search_install_list
.
clear
()
for
key
,
values
in
self
.
result_tmp
.
items
():
if
key
in
self
.
binary_dict
.
dictionary
:
...
...
@@ -201,13 +201,13 @@ class SelfDepend():
Returns:
Raises:
"""
_
,
self
.
result_tmp
,
_
,
not_fd_
build
=
build_depend
(
_
,
self
.
result_tmp
,
_
,
not_fd_
com
=
build_depend
(
self
.
search_build_list
,
self
.
db_list
,
self_build
=
0
,
history_dict
=
self
.
binary_dict
.
dictionary
).
build_depend_main
()
self
.
not_found_components
.
update
(
not_fd_
build
)
self
.
not_found_components
.
update
(
not_fd_
com
)
self
.
search_build_list
.
clear
()
for
key
,
values
in
self
.
result_tmp
.
items
():
if
not
key
:
...
...
@@ -233,13 +233,13 @@ class SelfDepend():
Args:
Returns:
"""
_
,
self
.
result_tmp
,
source_dicts_tmp
,
not_fd_
build
=
build_depend
(
_
,
self
.
result_tmp
,
source_dicts_tmp
,
not_fd_
com
=
build_depend
(
self
.
search_build_list
,
self
.
db_list
,
self_build
=
1
,
history_dict
=
self
.
source_dicts
.
dictionary
).
build_depend_main
()
self
.
not_found_components
.
update
(
not_fd_
build
)
self
.
not_found_components
.
update
(
not_fd_
com
)
for
key
,
values
in
self
.
result_tmp
.
items
():
if
not
key
:
LOGGER
.
logger
.
warning
(
"key is NONE for value = "
+
str
(
values
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录