From 0da4667badb870cf829f23e573b8179ba524730a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 13 Feb 2014 09:19:26 +0100 Subject: [PATCH] Don't clean the main ant project twice --- fdroidserver/common.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 15dc9ed6..0338a402 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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)