From 46e5fa37140d75d5b9de25c031abcd97a490ac7f Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Thu, 24 Nov 2022 20:50:39 +0100 Subject: [PATCH] clean_repos plugin: also clean submodules --- examples/fdroid_clean_repos.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/fdroid_clean_repos.py b/examples/fdroid_clean_repos.py index 252f57ba..aa535fc4 100644 --- a/examples/fdroid_clean_repos.py +++ b/examples/fdroid_clean_repos.py @@ -32,10 +32,13 @@ def main(): for appid, app in apps.items(): if "Builds" in app and len(app["Builds"]) > 0: + build = app.get('Builds')[-1] logging.info(_("Cleaning up '{appid}' VCS").format(appid=appid)) try: vcs, build_dir = common.setup_vcs(app) - vcs.gotorevision(app["Builds"][-1].commit) + vcs.gotorevision(build.commit) + if build.submodules: + vcs.initsubmodules() except VCSException: pass