mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-04 08:21:06 +03:00
Merge branch 'clean_submodules' into 'master'
clean_repos plugin: also clean submodules See merge request fdroid/fdroidserver!1268
This commit is contained in:
commit
159ae4a163
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue