mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-08-18 04:10:10 +02:00
Merge branch 'fixes/sha256-sum-verify' into 'master'
Fix verify.py use sha256sum from common See merge request fdroid/fdroidserver!1059
This commit is contained in:
commit
b6b3c9272b
@ -28,7 +28,6 @@ from collections import OrderedDict
|
|||||||
from . import _
|
from . import _
|
||||||
from . import common
|
from . import common
|
||||||
from . import net
|
from . import net
|
||||||
from . import update
|
|
||||||
from .exception import FDroidException
|
from .exception import FDroidException
|
||||||
|
|
||||||
options = None
|
options = None
|
||||||
@ -133,7 +132,7 @@ def write_json_report(url, remote_apk, unsigned_apk, compare_result):
|
|||||||
d = hashabledict()
|
d = hashabledict()
|
||||||
output[key] = d
|
output[key] = d
|
||||||
d['file'] = filename
|
d['file'] = filename
|
||||||
d['sha256'] = update.sha256sum(filename)
|
d['sha256'] = common.sha256sum(filename)
|
||||||
d['timestamp'] = os.stat(filename).st_ctime
|
d['timestamp'] = os.stat(filename).st_ctime
|
||||||
d['packageName'], d['versionCode'], d['versionName'] = common.get_apk_id(filename)
|
d['packageName'], d['versionCode'], d['versionName'] = common.get_apk_id(filename)
|
||||||
if compare_result:
|
if compare_result:
|
||||||
|
Loading…
Reference in New Issue
Block a user