Skip to content
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

Use init hook instead of prereposetup #3

Merged
merged 1 commit into from
Mar 3, 2020

Conversation

dave-pollock
Copy link
Owner

I ran into this issue: tellapart#3

When debugging, I could see that Yum was hitting the error inside the _baseurlSetup method: http://yum.baseurl.org/download/docs/yum-api/3.2.27/yum.yumRepo-pysrc.html#YumRepository._baseurlSetup

I added conduit.info(2, 'prereposetup_hook') at the beginning of the prereposetup_hook method and as far as I could see it was never being called. Using the init_hook caused the code to run and everything started working. No idea if this is specific to the version of Yum I'm using or what - and I have no idea if there will be unintended side effects of using the init hook instead, but this seems to be working for me..

Yum version: 3.4.3
CentOS 7

@dave-pollock dave-pollock merged commit 086cd98 into master Mar 3, 2020
@dave-pollock dave-pollock deleted the use-init-hook-instead-of-prereposetup branch November 1, 2022 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant