From 24c48ba672cdfda4eb3577b63869cb2ae779f7f5 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 20 Jan 2013 20:33:21 +0100 Subject: [PATCH] output drive cache defeating in rip drive list --- morituri/rip/drive.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/morituri/rip/drive.py b/morituri/rip/drive.py index 2bac282..8aad4cd 100644 --- a/morituri/rip/drive.py +++ b/morituri/rip/drive.py @@ -111,7 +111,18 @@ class List(logcommand.LogCommand): " Configured read offset: %d\n" % offset) except KeyError: self.stdout.write( - "No read offset found. Run 'rip offset find'\n") + " No read offset found. Run 'rip offset find'\n") + + try: + defeats = self.getRootCommand().config.getDefeatsCache( + vendor, model, release) + self.stdout.write( + " Can defeat audio cache: %s\n" % defeats) + except KeyError: + self.stdout.write( + " Unknown whether audio cache can be defeated. " + "Run 'rip drive analyze'\n") + if not paths: self.stdout.write('No drives found.\n')