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
97dfca51
Commit
97dfca51
authored
Jun 01, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更ä修复epk.py获取文件名后缀bug
parent
c8a8e20d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
backend/utils/epk.py
backend/utils/epk.py
+4
-4
backend/utils/epk_2.0.py
backend/utils/epk_2.0.py
+2
-2
No files found.
backend/utils/epk.py
View file @
97dfca51
...
@@ -106,7 +106,7 @@ class EpkApp(object):
...
@@ -106,7 +106,7 @@ class EpkApp(object):
fsize
=
jspath
.
info
.
size
fsize
=
jspath
.
info
.
size
fbasename
,
fext
=
os
.
path
.
splitext
(
jspath
.
info
.
name
)
fbasename
,
fext
=
os
.
path
.
splitext
(
jspath
.
info
.
name
)
if
fext
in
[
""
,
"
exe"
,
"dll"
,
"nv"
,
"
conf"
]:
if
fext
in
[
""
,
"
.exe"
,
".dll"
,
".nv"
,
".
conf"
]:
continue
continue
finfo
=
{
finfo
=
{
...
@@ -123,7 +123,7 @@ class EpkApp(object):
...
@@ -123,7 +123,7 @@ class EpkApp(object):
else
:
else
:
files
.
append
(
finfo
)
files
.
append
(
finfo
)
if
fext
==
"evue"
:
if
fext
==
"
.
evue"
:
self
.
fileMD5
(
finfo
)
self
.
fileMD5
(
finfo
)
return
files
return
files
...
@@ -144,9 +144,9 @@ class EpkApp(object):
...
@@ -144,9 +144,9 @@ class EpkApp(object):
filecontent
=
f
.
read
()
filecontent
=
f
.
read
()
newmd5
=
self
.
md5
(
filecontent
)
newmd5
=
self
.
md5
(
filecontent
)
with
open
(
md5path
,
"wb"
)
as
f
:
with
open
(
md5path
,
"wb"
)
as
f
:
f
.
write
(
newmd5
)
f
.
write
(
newmd5
)
return
newmd5
return
newmd5
def
sign
(
self
,
content
):
def
sign
(
self
,
content
):
...
...
backend/utils/epk_2.0.py
View file @
97dfca51
...
@@ -98,7 +98,7 @@ class EpkApp(object):
...
@@ -98,7 +98,7 @@ class EpkApp(object):
fsize
=
jspath
.
info
.
size
fsize
=
jspath
.
info
.
size
fbasename
,
fext
=
os
.
path
.
splitext
(
jspath
.
info
.
name
)
fbasename
,
fext
=
os
.
path
.
splitext
(
jspath
.
info
.
name
)
if
fext
in
[
""
,
"
exe"
,
"dll"
,
"nv"
,
"
conf"
]:
if
fext
in
[
""
,
"
.exe"
,
".dll"
,
".nv"
,
".
conf"
]:
continue
continue
finfo
=
{
finfo
=
{
...
@@ -114,7 +114,7 @@ class EpkApp(object):
...
@@ -114,7 +114,7 @@ class EpkApp(object):
else
:
else
:
files
.
append
(
finfo
)
files
.
append
(
finfo
)
if
fext
==
"evue"
:
if
fext
==
"
.
evue"
:
self
.
fileMD5
(
finfo
)
self
.
fileMD5
(
finfo
)
return
files
return
files
...
...
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