output drive cache defeating in rip drive list

This commit is contained in:
Thomas Vander Stichele
2013-01-20 20:33:21 +01:00
parent 453cc3409a
commit 24c48ba672

View File

@@ -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')