mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
Fix: use -cp (classpath) to fix problems with java getsig
This commit is contained in:
parent
7f43797a64
commit
8bab7a06ce
1 changed files with 2 additions and 4 deletions
|
@ -385,10 +385,8 @@ def scan_apks(apps, apkcache, repodir, knownapks):
|
||||||
thisinfo['sha256'] = sha.hexdigest()
|
thisinfo['sha256'] = sha.hexdigest()
|
||||||
|
|
||||||
# Get the signature (or md5 of, to be precise)...
|
# Get the signature (or md5 of, to be precise)...
|
||||||
p = subprocess.Popen(['java', 'getsig',
|
p = subprocess.Popen(['java', '-cp', os.path.join(os.path.dirname(__file__), 'getsig'),
|
||||||
os.path.join(os.getcwd(), apkfile)],
|
'getsig', os.path.join(os.getcwd(), apkfile)], stdout=subprocess.PIPE)
|
||||||
cwd=os.path.join(os.path.dirname(__file__), 'getsig'),
|
|
||||||
stdout=subprocess.PIPE)
|
|
||||||
output = p.communicate()[0]
|
output = p.communicate()[0]
|
||||||
if options.verbose:
|
if options.verbose:
|
||||||
print output
|
print output
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue