1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 02:50:12 +01:00

Fix: use -cp (classpath) to fix problems with java getsig

This commit is contained in:
Daniel Martí 2013-11-02 22:01:50 +01:00
parent 7f43797a64
commit 8bab7a06ce

View File

@ -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