chiark / gitweb /
Don't check for mvn and gradle binaries
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 26 Jan 2014 20:30:54 +0000 (21:30 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 26 Jan 2014 20:30:54 +0000 (21:30 +0100)
fdroidserver/common.py

index 30a53bc50d2cfd0f646c3947f05c6b02bd5ecb33..e6997e38dfff1d2d16e8548dc0a166e1835df227 100644 (file)
@@ -26,7 +26,6 @@ import operator
 import Queue
 import threading
 import magic
-from distutils.spawn import find_executable
 
 import metadata
 
@@ -83,16 +82,6 @@ def read_config(opts, config_file='config.py'):
         v = os.path.expanduser(v)
         config[k] = os.path.expandvars(v)
 
-    # Check that commands and binaries do exist
-    for key in ('mvn3', 'gradle'):
-        if key not in config:
-            continue
-        val = config[key]
-        executable = find_executable(val)
-        if not executable:
-            print "ERROR: No such command or binary for %s: %s" % (key, val)
-            sys.exit(3)
-
     # Check that directories exist
     for key in ('sdk_path', 'ndk_path', 'build_tools'):
         if key not in config: