提交 9aaba681 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!88 修正命令行初始化Filepath参数相对路径不受支持和路径太长问题

Merge pull request !88 from 包成强/master
......@@ -186,4 +186,4 @@ class InitSystemSchema(Schema):
"""
configfile = fields.Str(
validate=validate.Length(
max=50), required=False, allow_none=True)
max=500), required=False, allow_none=True)
......@@ -465,6 +465,7 @@ class InitDatabaseCommand(PkgshipCommand):
"""
file_path = params.filepath
try:
file_path = os.path.abspath(file_path)
response = requests.post(self.write_host +
'/initsystem', data=json.dumps({'configfile': file_path}),
headers=self.headers)
......
Name: pkgship
Version: 1.0.0
Release: 6
Release: 7
Summary: Pkgship implements rpm package dependence ,maintainer, patch query and so no.
License: Mulan 2.0
URL: https://gitee.com/openeuler/openEuler-Advisor
......@@ -28,7 +28,7 @@ Pkgship implements rpm package dependence ,maintainer, patch query and so no.
%check
# change log_path to solve default log_path permission denied problem
# change log_path to solve default log_path permission denied problem
log_path=`pwd`/tmp/
sed -i "/\[LOG\]/a\log_path=$log_path" test/common_files/package.ini
%{__python3} -m unittest test/run_tests.py
......@@ -60,7 +60,7 @@ rm -rf %{python3_sitelib}/packageship/build %{python3_sitelib}/packageship/dist
%files
%doc README.md
%doc README.md
%{python3_sitelib}/*
%config %{_sysconfdir}/pkgship/*
%attr(0755,root,root) %{_bindir}/pkgshipd
......@@ -68,6 +68,9 @@ rm -rf %{python3_sitelib}/packageship/build %{python3_sitelib}/packageship/dist
%changelog
* Fri Aug 21 2020 Chengqiang Bao < baochengqiang1@huawei.com > - 1.0.0-7
- Fixed a problem with command line initialization of the Filepath parameter where relative paths are not supported and paths are too long
* Wed Aug 12 2020 Zhang Tao <zhangtao306@huawei.com> - 1.0.0-6
- Fix the test content to adapt to the new data structure, add BuildRequires for running %check
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册