From a1cf9be277982d11d0c9263b0ea20dc09e77c8f2 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 3 Feb 2013 14:55:59 +0100 Subject: [PATCH] make sure we mark defeatsCache as false if cdparanoia fails. --- morituri/program/cdparanoia.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/morituri/program/cdparanoia.py b/morituri/program/cdparanoia.py index c86ff02..6ef58e3 100644 --- a/morituri/program/cdparanoia.py +++ b/morituri/program/cdparanoia.py @@ -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)