mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
clean_repos plugin: also clean submodules
This commit is contained in:
parent
07481953ae
commit
46e5fa3714
@ -32,10 +32,13 @@ def main():
|
|||||||
|
|
||||||
for appid, app in apps.items():
|
for appid, app in apps.items():
|
||||||
if "Builds" in app and len(app["Builds"]) > 0:
|
if "Builds" in app and len(app["Builds"]) > 0:
|
||||||
|
build = app.get('Builds')[-1]
|
||||||
logging.info(_("Cleaning up '{appid}' VCS").format(appid=appid))
|
logging.info(_("Cleaning up '{appid}' VCS").format(appid=appid))
|
||||||
try:
|
try:
|
||||||
vcs, build_dir = common.setup_vcs(app)
|
vcs, build_dir = common.setup_vcs(app)
|
||||||
vcs.gotorevision(app["Builds"][-1].commit)
|
vcs.gotorevision(build.commit)
|
||||||
|
if build.submodules:
|
||||||
|
vcs.initsubmodules()
|
||||||
|
|
||||||
except VCSException:
|
except VCSException:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user