-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add config file option to set cdparanoia command #571
base: develop
Are you sure you want to change the base?
Conversation
Resolves whipper-team#220 Partially addresses whipper-team#244 Provides workaround for whipper-team#234 Signed-off-by: Evan Harris <[email protected]>
f623604
to
c7d02d3
Compare
Signed-off-by: Evan Harris <[email protected]>
Signed-off-by: Evan Harris <[email protected]>
Sorry for getting back to you so late on this, but I'm trying to help get these pull requests merged. I think the pull request looks fine, the only thing I don't quite like is the usage of 'global' to change the value of the variable in |
@@ -101,6 +101,10 @@ def getDefeatsCache(self, vendor, model, release): | |||
option = self._getDriveOption(vendor, model, release, 'defeats_cache') | |||
return option == 'True' | |||
|
|||
def getCdparanoia(self, vendor, model, release): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def getCdparanoia(self, vendor, model, release): | |
def getCdParanoia(self, vendor, model, release): |
Same casing as other instances.
The global was necessary because the cdparanoia command is used in several places, so couldn't be restricted to just one module. Is there anything keeping this from getting merged? |
This allows for setting the cdparanoia executable via the config file like so:
This does not allow for setting the option via the command line, as that would have required more extensive changes, since cdparanoia is used for multiple commands. But this does now allow for code to be added to make
whipper
smarter and possibly able to detect and self-configure to use the best cdparanoia version, if multiple versions are available.Resolves #220
Partially addresses #244
Provides workaround for #234