mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-19 03:30:12 +02:00
Remove bin/ and gen/ in update= dirs too!
This commit is contained in:
parent
e6fe2d7d53
commit
f6554d846c
@ -1199,6 +1199,12 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, sdk_path,
|
|||||||
os.remove(buildxml)
|
os.remove(buildxml)
|
||||||
for d in update_dirs:
|
for d in update_dirs:
|
||||||
cwd = os.path.join(root_dir, d)
|
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:
|
if verbose:
|
||||||
print "Update of '%s': exec '%s' in '%s'"%\
|
print "Update of '%s': exec '%s' in '%s'"%\
|
||||||
(d," ".join(parms),cwd)
|
(d," ".join(parms),cwd)
|
||||||
|
Loading…
Reference in New Issue
Block a user