force clean does't overide delete_failed. Fixes #842

This commit is contained in:
clinton-hall 2015-10-13 20:25:58 +10:30
commit a83311e909

View file

@ -681,7 +681,7 @@ def cleanDir(path, section, subsection):
if not os.path.exists(path):
logger.info('Directory %s has been processed and removed ...' % (path), 'CLEANDIR')
return
if core.FORCE_CLEAN:
if core.FORCE_CLEAN and not core.FAILED:
logger.info('Doing Forceful Clean of %s' % (path), 'CLEANDIR')
rmDir(path)
return