This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/media-sound/whipper/files/whipper-0.7.0-cdparanoia-name-fix.patch
tastytea 1f0b690699
All checks were successful
continuous-integration/drone/push Build is passing
media-sound/whipper: New package.
2020-07-14 12:34:47 +02:00

52 lines
2.0 KiB
Diff

diff -ur a/whipper/program/cdparanoia.py b/whipper/program/cdparanoia.py
--- a/whipper/program/cdparanoia.py 2018-04-09 10:05:00.000000000 +0200
+++ b/whipper/program/cdparanoia.py 2018-08-03 11:59:22.582106444 +0200
@@ -280,10 +280,10 @@
bufsize = 1024
if self._overread:
- argv = ["cd-paranoia", "--stderr-progress",
+ argv = ["libcdio-paranoia", "--stderr-progress",
"--sample-offset=%d" % self._offset, "--force-overread", ]
else:
- argv = ["cd-paranoia", "--stderr-progress",
+ argv = ["libcdio-paranoia", "--stderr-progress",
"--sample-offset=%d" % self._offset, ]
if self._device:
argv.extend(["--force-cdrom-device", self._device, ])
@@ -302,7 +302,7 @@
except OSError, e:
import errno
if e.errno == errno.ENOENT:
- raise common.MissingDependencyException('cd-paranoia')
+ raise common.MissingDependencyException('libcdio-paranoia')
raise
@@ -559,8 +559,8 @@
def getCdParanoiaVersion():
- getter = common.VersionGetter('cd-paranoia',
- ["cd-paranoia", "-V"],
+ getter = common.VersionGetter('libcdio-paranoia',
+ ["libcdio-paranoia", "-V"],
_VERSION_RE,
"%(version)s %(release)s")
@@ -585,12 +585,12 @@
def __init__(self, device=None):
# cdparanoia -A *always* writes cdparanoia.log
self.cwd = tempfile.mkdtemp(suffix='.whipper.cache')
- self.command = ['cd-paranoia', '-A']
+ self.command = ['libcdio-paranoia', '-A']
if device:
self.command += ['-d', device]
def commandMissing(self):
- raise common.MissingDependencyException('cd-paranoia')
+ raise common.MissingDependencyException('libcdio-paranoia')
def readbyteserr(self, bytes):
self._output.append(bytes)