From 72fde0f10b26f36a7dad536b39a14394d2b2eace Mon Sep 17 00:00:00 2001 From: Licaon_Kter Date: Thu, 11 Jun 2020 16:36:54 +0300 Subject: [PATCH] Detect .gitmodules and add submodules build line --- fdroidserver/import.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fdroidserver/import.py b/fdroidserver/import.py index 5a313bf8..a6098202 100644 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@ -191,6 +191,10 @@ def main(): '$$flutter$$/bin/flutter build apk', ] + git_modules = os.path.join(tmp_importer_dir, '.gitmodules') + if os.path.exists(git_modules): + build.submodules = True + metadata.post_metadata_parse(app) app.builds.append(build)