import: make it work most of the time with git repos

This includes real tests too.
This commit is contained in:
Hans-Christoph Steiner 2020-01-31 23:49:50 +01:00
parent e049a120f8
commit bfe587979d
28 changed files with 1184 additions and 42 deletions

View file

@ -18,7 +18,9 @@ class Options:
module = __import__('fdroidserver.import')
for name, obj in inspect.getmembers(module):
if name == 'import':
get_all_gradle_and_manifests = obj.get_all_gradle_and_manifests
get_metadata_from_url = obj.get_metadata_from_url
get_gradle_subdir = obj.get_gradle_subdir
obj.options = Options()
options = obj.options
break