* morituri/program/cdrdao.py:

Parse version number.
	* morituri/rip/cd.py:
	  Warn about cdrdao versions with a bug.
	* morituri/test/test_program_cdrdao.py:
	  Test that we can parse the version.
This commit is contained in:
Thomas Vander Stichele
2009-09-05 22:06:02 +00:00
parent e61a10266d
commit 6df7313dc4
4 changed files with 23 additions and 0 deletions

View File

@@ -88,6 +88,10 @@ class Rip(logcommand.LogCommand):
if not ptoc.object:
t = cdrdao.ReadTOCTask(device=device)
function(runner, t)
version = t.tasks[1].parser.version
from pkg_resources import parse_version as V
if V(version) <= V('1.2.3'):
print 'Warning: cdrdao 1.2.3 and older have a pre-gap length bug.'
ptoc.persist(t.table)
ittoc = ptoc.object
assert ittoc.hasTOC()