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

Speed-up detection of installed externals in RPM-based distros #1036

Merged
merged 2 commits into from
Jun 3, 2022

Conversation

mosteo
Copy link
Member

@mosteo mosteo commented Jun 2, 2022

Although the yum/dnf wrappers are needed for the installation proper, we can
speed up detections of already installed packages by using rpm directly.
Unfortunately, rpm cannot give info on not installed packages, but this still
should speed up things greatly for the usual case of gnat/gprbuild being installed.

Fixes #1028

@BeChris, as you did the original implementation, would you be so kind to check if you see any obvious problem with these changes?

@mosteo mosteo marked this pull request as ready for review June 2, 2022 20:02
@mosteo mosteo requested a review from Fabien-Chouteau June 2, 2022 20:02
Fabien-Chouteau
Fabien-Chouteau previously approved these changes Jun 3, 2022
@mosteo mosteo changed the base branch from master to release/1.2 June 3, 2022 09:44
@mosteo mosteo dismissed Fabien-Chouteau’s stale review June 3, 2022 09:44

The base branch was changed.

mosteo added 2 commits June 3, 2022 11:45
Although the yum/dnf wrappers are needed for the installation proper, we can
speed up detections of already installed packages by using rpm directly.
Unfortunately, rpm cannot give info on not installed packages, but this still
speeds up things greatly for the usual case of gnat/gprbuild being installed.
@mosteo mosteo merged commit 33a21df into release/1.2 Jun 3, 2022
@mosteo mosteo deleted the fix/rpm branch June 3, 2022 10:11
@BeChris
Copy link
Contributor

BeChris commented Jun 5, 2022

Although the yum/dnf wrappers are needed for the installation proper, we can speed up detections of already installed packages by using rpm directly. Unfortunately, rpm cannot give info on not installed packages, but this still should speed up things greatly for the usual case of gnat/gprbuild being installed.

Fixes #1028

@BeChris, as you did the original implementation, would you be so kind to check if you see any obvious problem with these changes?

Hello, I don't see any problems in this new implementation.
Regards.

@mosteo
Copy link
Member Author

mosteo commented Jun 6, 2022

Thanks, @BeChris

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.

"Looking for external crate: gprbuild" is slow
3 participants