Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanli
evm-store
Commits
15ef1eea
Commit
15ef1eea
authored
Mar 15, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
cb29e4ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
backend/controller/download_manager.py
backend/controller/download_manager.py
+4
-1
backend/view/download.py
backend/view/download.py
+1
-1
No files found.
backend/controller/download_manager.py
View file @
15ef1eea
...
@@ -121,7 +121,10 @@ class DownloadManager(object):
...
@@ -121,7 +121,10 @@ class DownloadManager(object):
if
not
os
.
path
.
exists
(
tf
):
if
not
os
.
path
.
exists
(
tf
):
return
False
,
"{} not found"
.
format
(
tf
)
return
False
,
"{} not found"
.
format
(
tf
)
shutil
.
copy
(
tf
,
build_source_path
)
filename
=
os
.
path
.
basename
(
tf
)
name
,
suffix
=
os
.
path
.
splitext
(
filename
)
name
=
re
.
sub
(
r"_\d{14}$"
,
""
,
name
)
shutil
.
copy
(
tf
,
os
.
sep
.
join
([
build_source_path
,
name
+
suffix
]))
temp
=
[]
temp
=
[]
# 读取当前系统所有应用及其资源文件
# 读取当前系统所有应用及其资源文件
...
...
backend/view/download.py
View file @
15ef1eea
...
@@ -62,7 +62,7 @@ def get():
...
@@ -62,7 +62,7 @@ def get():
# 读取epk文件,按照格式返回相应结构体数据
# 读取epk文件,按照格式返回相应结构体数据
ret
=
""
ret
=
""
if
os
.
path
.
exists
(
result
):
if
os
.
path
.
exists
(
result
):
with
open
(
result
,
"r"
)
as
f
:
with
open
(
result
,
"r
b
"
)
as
f
:
ret
=
f
.
read
()
ret
=
f
.
read
()
return
ret
return
ret
except
Exception
as
e
:
except
Exception
as
e
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment