make sure we mark defeatsCache as false if cdparanoia fails.

This commit is contained in:
Thomas Vander Stichele
2013-02-03 14:55:59 +01:00
parent 66a6079550
commit a1cf9be277

View File

@@ -603,5 +603,8 @@ class AnalyzeTask(ctask.PopenTask):
self.defeatsCache = False
def failed(self):
# cdparanoia exits with return code 1 if it can't determine
# whether it can defeat the audio cache
self.defeatsCache = False
if self.cwd:
shutil.rmtree(self.cwd)