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()
|
||||
|
||||
# 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…
Add table
Add a link
Reference in a new issue