Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
openEuler-Advisor
提交
f713e6a0
O
openEuler-Advisor
项目概览
openeuler
/
openEuler-Advisor
通知
30
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,体验更适合开发者的 AI 搜索 >>
提交
f713e6a0
编写于
9月 03, 2020
作者:
Z
zt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加参数,返回值对应的文档描述,修改代码格式,
上级
e857a6a9
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
14 addition
and
3 deletion
+14
-3
packageship/packageship/application/apps/package/function/build_depend.py
...ageship/application/apps/package/function/build_depend.py
+3
-1
packageship/packageship/application/apps/package/function/install_depend.py
...eship/application/apps/package/function/install_depend.py
+2
-0
packageship/packageship/application/apps/package/function/searchdb.py
...packageship/application/apps/package/function/searchdb.py
+4
-2
packageship/packageship/application/apps/package/function/self_depend.py
...kageship/application/apps/package/function/self_depend.py
+2
-0
packageship/packageship/pkgship.py
packageship/packageship/pkgship.py
+3
-0
未找到文件。
packageship/packageship/application/apps/package/function/build_depend.py
浏览文件 @
f713e6a0
...
...
@@ -19,6 +19,7 @@ class BuildDepend():
search_db:Query an instance of a database class
result_dict:A dictionary to store the data that needs to be echoed
source_dict:A dictionary to store the searched source code package name
not_found_components: Contain the package not found components
"""
def
__init__
(
self
,
pkg_name_list
,
db_list
,
self_build
=
0
,
history_dict
=
None
):
...
...
@@ -45,6 +46,7 @@ class BuildDepend():
ResponseCode: response code
result_dict: Dictionary of query results
source_dict: Dictionary of source code package
not_found_components: Set of package not found components
Raises:
"""
if
not
self
.
search_db
.
db_object_dict
:
...
...
@@ -67,7 +69,7 @@ class BuildDepend():
# The status code is not the final display status code
return
ResponseCode
.
SUCCESS
,
self
.
result_dict
,
self
.
source_dict
,
self
.
not_found_components
return
ResponseCode
.
PARAM_ERROR
,
None
,
None
,
set
()
return
ResponseCode
.
PARAM_ERROR
,
None
,
None
,
set
()
def
build_depend
(
self
,
pkg_list
):
"""
...
...
packageship/packageship/application/apps/package/function/install_depend.py
浏览文件 @
f713e6a0
...
...
@@ -20,6 +20,7 @@ class InstallDepend():
__search_list: Contain the binary packages searched in the next loop
binary_dict: Contain all the binary packages info and operation
__search_db: A object of database which would be connected
not_found_components: Contain the package not found components
changeLog:
"""
#pylint: disable = too-few-public-methods
...
...
@@ -52,6 +53,7 @@ class InstallDepend():
'install'
]
]}
not_found_components:Set of package not found components
Raises:
"""
if
not
self
.
__search_db
.
db_object_dict
:
...
...
packageship/packageship/application/apps/package/function/searchdb.py
浏览文件 @
f713e6a0
...
...
@@ -58,7 +58,8 @@ class SearchDB():
Args:
binary_list: a list of binary package name
Returns:
install depend list
list:install depend list
set:package not found components
Raises:
"""
result_list
=
[]
...
...
@@ -181,6 +182,7 @@ class SearchDB():
Args:
source_name_list: search package's name, database preority list
Returns:
response code
result_list: subpack tuple
Raises:
AttributeError: The object does not have this property
...
...
@@ -390,7 +392,7 @@ class SearchDB():
all source pkg build depend list
structure :[(search_name,source_name,bin_name,bin_version,db_name,search_version),
(search_name,source_name,bin_name,bin_version,db_name,search_version),]
set: package not found components name set
Raises:
AttributeError: The object does not have this property
SQLAlchemyError: sqlalchemy error
...
...
packageship/packageship/application/apps/package/function/self_depend.py
浏览文件 @
f713e6a0
...
...
@@ -33,6 +33,7 @@ class SelfDepend():
search_subpack_list: Contain the source packages searched subpack in the next loop
withsubpack: withsubpack
search_db: A object of database which would be connected
not_found_components: Contain the package not found components
"""
def
__init__
(
self
,
db_list
):
"""
...
...
@@ -60,6 +61,7 @@ class SelfDepend():
Returns:
binary_dict.dictionary: Contain all the binary packages info after searching
source_dicts.dictionary: Contain all the source packages info after searching
not_found_components :Set of package not found components
Raises:
"""
if
not
self
.
search_db
.
db_object_dict
:
...
...
packageship/packageship/pkgship.py
浏览文件 @
f713e6a0
...
...
@@ -215,6 +215,7 @@ class PkgshipCommand(BaseCommand):
Description: Parsing package data with dependencies
Args:
response_data: http request response content
params: Parameters passed in on the command line
Returns:
Summarized data table
Raises:
...
...
@@ -825,6 +826,7 @@ class InstallDepCommand(PkgshipCommand):
Description: Parse the corresponding data of the package
Args:
response_data: http response data
params: Parameters passed in on the command line
Returns:
Raises:
...
...
@@ -1050,6 +1052,7 @@ class SelfBuildCommand(PkgshipCommand):
Description: Parse the corresponding data of the package
Args:
response_data: http response data
params: Parameters passed in on the command line
Returns:
Summarized data table
Raises:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录