get version for cdrdao too.

Add debug commands: rip debug version cdrdao/cdparanoia
This commit is contained in:
Thomas Vander Stichele
2013-07-13 11:31:27 +02:00
parent cc2ee6ba07
commit 7813103a4d
7 changed files with 106 additions and 25 deletions

View File

@@ -507,3 +507,16 @@ class ProgramFailedException(Exception):
def __init__(self, code):
self.code = code
self.args = (code, )
_VERSION_RE = re.compile(
"^Cdrdao version (?P<version>.+) -")
def getCDRDAOVersion():
getter = common.VersionGetter('cdrdao',
["cdrdao"],
_VERSION_RE,
"%(version)s")
return getter.get()