mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-13 02:30:11 +01:00
Fix: use -cp (classpath) to fix problems with java getsig
This commit is contained in:
parent
7f43797a64
commit
8bab7a06ce
@ -385,10 +385,8 @@ def scan_apks(apps, apkcache, repodir, knownapks):
|
||||
thisinfo['sha256'] = sha.hexdigest()
|
||||
|
||||
# Get the signature (or md5 of, to be precise)...
|
||||
p = subprocess.Popen(['java', 'getsig',
|
||||
os.path.join(os.getcwd(), apkfile)],
|
||||
cwd=os.path.join(os.path.dirname(__file__), 'getsig'),
|
||||
stdout=subprocess.PIPE)
|
||||
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]
|
||||
if options.verbose:
|
||||
print output
|
||||
|
Loading…
Reference in New Issue
Block a user