mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-13 02:30:11 +01:00
AM.xml is not the only file that designates an android app source dir
This commit is contained in:
parent
5b613292c3
commit
7a4ec5c083
@ -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,
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user