Just try to delete files in the folder

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-08-08 02:07:23 +02:00
parent 074b2f6d1b
commit a34298efbd

View File

@@ -111,7 +111,7 @@ def python_slave(key, platform, cmake_args = [], cmake_env = {}, build_args = []
# property set? If so, clobber the checkout folders.
if platform.startswith('win'):
# del /q destination\* && for /d %x in (destination\*) do @rd /s /q %x
cmd = ['cmd', '/c', WithProperties('if %(fullclean:-no)s == no (del /q destination\* && for /d %x in (destination\*) do @rd /s /q %x) ')]
cmd = ['cmd', '/c', WithProperties('if %(fullclean:-no)s == no (del /q *) ')]
else:
cmd = ['bash', '-c',
WithProperties('if [ %(fullclean:-no)s == yes ]; then echo pwd; rm -rfv *; echo fully cleaned; fi'),