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

dnf: Run subscription-manager sync before refreshing metadata #285

Merged
merged 1 commit into from Oct 9, 2018

Conversation

hughsie
Copy link
Collaborator

@hughsie hughsie commented Oct 9, 2018

No description provided.

@hughsie hughsie self-assigned this Oct 9, 2018
@hughsie hughsie requested a review from kalev October 9, 2018 14:01
@kalev
Copy link
Collaborator

kalev commented Oct 9, 2018

Hm, libdnf has a bunch of bugs in the repo reloading. I think we need to do dnf_repo_loader_get_repos() after the subscription manager call to force it to correctly reload, similar to what pk_backend_yum_repos_changed_cb does and also clear the sack cache etc.

@hughsie hughsie force-pushed the wip/hughsie/subscription-manager branch from 6c2a279 to 376a431 Compare October 9, 2018 14:20
Copy link
Collaborator

@kalev kalev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks.

@hughsie hughsie merged commit abd4f9b into master Oct 9, 2018
@hughsie hughsie deleted the wip/hughsie/subscription-manager branch October 9, 2018 14:37
@Conan-Kudo
Copy link
Member

Why didn't we use librhsm here?

@hughsie
Copy link
Collaborator Author

hughsie commented Oct 10, 2018

I thought that was dead? The explicit exec was what the subscription manager team wanted us to do.

@Conan-Kudo
Copy link
Member

That's news to me, since libdnf still uses it, and there's a PR to convert its usage into a passive runtime plugin.

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.

None yet

3 participants