mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
Check that getsig.class exists, give user hints how to make it.
This commit is contained in:
parent
4543588941
commit
57c53125d0
1 changed files with 6 additions and 0 deletions
|
@ -391,6 +391,12 @@ def scan_apks(apps, apkcache, repodir, knownapks):
|
|||
thisinfo['sha256'] = sha.hexdigest()
|
||||
|
||||
# Get the signature (or md5 of, to be precise)...
|
||||
getsig_dir = os.path.join(os.path.dirname(__file__), 'getsig')
|
||||
if not os.path.exists(getsig_dir + "/getsig.class"):
|
||||
print "ERROR: getsig.class not found. To fix:"
|
||||
print "\tcd " + getsig_dir
|
||||
print "\t./make.sh"
|
||||
sys.exit(1)
|
||||
p = subprocess.Popen(['java', '-cp', os.path.join(os.path.dirname(__file__), 'getsig'),
|
||||
'getsig', os.path.join(os.getcwd(), apkfile)], stdout=subprocess.PIPE)
|
||||
output = p.communicate()[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue