chiark / gitweb /
Check that getsig.class exists, give user hints how to make it.
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>
Sat, 16 Nov 2013 17:06:41 +0000 (19:06 +0200)
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>
Sat, 16 Nov 2013 17:06:41 +0000 (19:06 +0200)
fdroidserver/update.py

index 073e005b34f59f77a20da0b72ad7a8d6aaf0a8f8..30c77c4a5b8af821539f11758639b28804ad36f4 100644 (file)
@@ -391,6 +391,12 @@ def scan_apks(apps, apkcache, repodir, knownapks):
                 thisinfo['sha256'] = sha.hexdigest()
 
             # Get the signature (or md5 of, to be precise)...
+            getsig_dir = os.path.join(os.path.dirname(__file__), 'getsig')
+            if not os.path.exists(getsig_dir + "/getsig.class"):
+                print "ERROR: getsig.class not found. To fix:"
+                print "\tcd " + getsig_dir
+                print "\t./make.sh"
+                sys.exit(1)
             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]