mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Run ant clean in update= dirs instead of removing dirs
This commit is contained in:
parent
483816bc9c
commit
5522d9bcd9
1 changed files with 3 additions and 7 deletions
|
|
@ -941,13 +941,9 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver=
|
||||||
os.remove(buildxml)
|
os.remove(buildxml)
|
||||||
|
|
||||||
for d in update_dirs:
|
for d in update_dirs:
|
||||||
# Remove gen and bin dirs in libraries
|
subdir = os.path.join(root_dir, d)
|
||||||
# rid of them...
|
# Clean update dirs via ant
|
||||||
for baddir in ['gen', 'bin', 'obj']
|
p = FDroidPopen(['ant', 'clean'], cwd=subdir)
|
||||||
badpath = os.path.join(root_dir, d, baddir)
|
|
||||||
if os.path.exists(badpath):
|
|
||||||
print "Removing '%s'" % badpath
|
|
||||||
shutil.rmtree(badpath)
|
|
||||||
dparms = parms + ['-p', d]
|
dparms = parms + ['-p', d]
|
||||||
if options.verbose:
|
if options.verbose:
|
||||||
if d == '.':
|
if d == '.':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue