1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +01:00

Don't clean the main ant project twice

This commit is contained in:
Daniel Martí 2014-02-13 09:19:26 +01:00
parent c2963c9cde
commit 0da4667bad

View File

@ -1085,11 +1085,9 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
if p.returncode != 0 or p.stdout.startswith("Error: "):
raise BuildException("Failed to update project at %s" % d, p.stdout)
# Clean update dirs via ant
if d == '.':
logging.info("Cleaning main project")
else:
if d != '.':
logging.info("Cleaning subproject %s" % d)
p = FDroidPopen(['ant', 'clean'], cwd=subdir)
p = FDroidPopen(['ant', 'clean'], cwd=subdir)
return (root_dir, srclibpaths)