* morituri/program/cdparanoia.py:

Warn about missing cdparanoia too.
This commit is contained in:
Thomas Vander Stichele
2010-06-18 22:28:13 +00:00
parent 0c5e13ce0f
commit 941db66398
2 changed files with 16 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
2010-06-19 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/program/cdparanoia.py:
Warn about missing cdparanoia too.
2010-06-19 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/common.py:

View File

@@ -243,10 +243,17 @@ class ReadTrackTask(task.Task):
stopTrack, common.framesToHMSF(stopOffset)),
self.path])
self.debug('Running %s' % (" ".join(argv), ))
self._popen = asyncsub.Popen(argv,
bufsize=bufsize,
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, close_fds=True)
try:
self._popen = asyncsub.Popen(argv,
bufsize=bufsize,
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, close_fds=True)
except OSError, e:
import errno
if e.errno == errno.ENOENT:
raise common.MissingDependencyException('cdparanoia')
raise
self.runner.schedule(1.0, self._read, runner)