From 8bab7a06ce1f5703f3885a949c877f222c6965f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sat, 2 Nov 2013 22:01:50 +0100 Subject: [PATCH] Fix: use -cp (classpath) to fix problems with java getsig --- fdroidserver/update.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 38dcdeb7..600c159a 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -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