cwd = os.path.join(root_dir, d)
# Remove gen and bin dirs in libraries
# rid of them...
- for baddir in ['gen', 'bin']:
+ for baddir in ['gen', 'bin', 'obj', 'libs/armeabi-v7a', 'libs/armeabi', 'libs/mips', 'libs/x86']:
badpath = os.path.join(cwd, baddir)
if os.path.exists(badpath):
+ print "Removing %s in update dir %s" % (badpath, d)
shutil.rmtree(badpath)
if verbose:
print "Update of '%s': exec '%s' in '%s'"%\
for baddir in ['gen', 'bin', 'obj', 'libs/armeabi-v7a', 'libs/armeabi', 'libs/mips', 'libs/x86']:
badpath = os.path.join(root_dir, baddir)
if os.path.exists(badpath):
+ print "Removing %s" % badpath
shutil.rmtree(badpath)
# Apply patches if any