chiark / gitweb /
AM.xml is not the only file that designates an android app source dir
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 2 Nov 2013 21:52:52 +0000 (22:52 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 2 Nov 2013 21:52:52 +0000 (22:52 +0100)
fdroidserver/common.py
fdroidserver/import.py

index 5645df23faf6ea34e60b37f880975200f4fa9006..1b41f1110978a236e1c5f9622bca677cff244efb 100644 (file)
@@ -45,6 +45,8 @@ def read_config(opts):
         sys.exit(2)
 
     options = opts
+    if not hasattr(options, 'verbose'):
+        options.verbose = False
 
     config = {
         'build_server_always': False,
index 2c1ff6514b4c1e1cc9f9641cd620596cbc1f0aaf..402a44f4f6a901af1facc3cf8f68d479d8b0e1f9 100644 (file)
@@ -227,13 +227,12 @@ def main():
     else:
         root_dir = src_dir
 
-    # Check AndroidManiifest.xml exists...
-    if not os.path.exists(root_dir + '/AndroidManifest.xml'):
-        print "AndroidManifest.xml did not exist in the expected location. Specify --subdir?"
-        sys.exit(1)
-
     # Extract some information...
     paths = common.manifest_paths(root_dir, None)
+    if not paths:
+        print "No android project could be found. Specify --subdir?"
+        sys.exit(1)
+
     version, vercode, package = common.parse_androidmanifests(paths)
     if not package:
         print "Couldn't find package ID"