Commit 97dfca51 authored by wanli's avatar wanli

更ä修复epk.py获取文件名后缀bug

parent c8a8e20d
......@@ -106,7 +106,7 @@ class EpkApp(object):
fsize = jspath.info.size
fbasename, fext = os.path.splitext(jspath.info.name)
if fext in ["", "exe", "dll", "nv", "conf"]:
if fext in ["", ".exe", ".dll", ".nv", ".conf"]:
continue
finfo = {
......@@ -123,7 +123,7 @@ class EpkApp(object):
else:
files.append(finfo)
if fext == "evue":
if fext == ".evue":
self.fileMD5(finfo)
return files
......@@ -144,9 +144,9 @@ class EpkApp(object):
filecontent = f.read()
newmd5 = self.md5(filecontent)
with open(md5path, "wb") as f:
f.write(newmd5)
return newmd5
def sign(self, content):
......
......@@ -98,7 +98,7 @@ class EpkApp(object):
fsize = jspath.info.size
fbasename, fext = os.path.splitext(jspath.info.name)
if fext in ["", "exe", "dll", "nv", "conf"]:
if fext in ["", ".exe", ".dll", ".nv", ".conf"]:
continue
finfo = {
......@@ -114,7 +114,7 @@ class EpkApp(object):
else:
files.append(finfo)
if fext == "evue":
if fext == ".evue":
self.fileMD5(finfo)
return files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment