From f6554d846c52052d3f5a37d1f3f9122a5bb64b0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Wed, 21 Aug 2013 16:20:27 +0200 Subject: [PATCH] Remove bin/ and gen/ in update= dirs too! --- fdroidserver/common.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 7ec432b4..2802afaa 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1199,6 +1199,12 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, sdk_path, os.remove(buildxml) for d in update_dirs: cwd = os.path.join(root_dir, d) + # Remove gen and bin dirs in libraries + # rid of them... + for baddir in ['gen', 'bin']: + badpath = os.path.join(cwd, baddir) + if os.path.exists(badpath): + shutil.rmtree(badpath) if verbose: print "Update of '%s': exec '%s' in '%s'"%\ (d," ".join(parms),cwd) -- 2.30.2