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

Missing Packages Ignored On Yum Install #225

Open
ndonegan opened this issue Oct 11, 2016 · 2 comments
Open

Missing Packages Ignored On Yum Install #225

ndonegan opened this issue Oct 11, 2016 · 2 comments

Comments

@ndonegan
Copy link
Contributor

There's an unfortunate edge case in yum where if multiple packages are installed, yum will happily return 0 even if some a subset of packages are missing. The yum output will state that the package is not available, but that's easily missed.

The only reliable way to actually check for this seems to be use yum info to individually check each package and see if it exists.

PR will be forthcoming shortly.

@clalancette
Copy link
Owner

Ug, that sucks. Do you know if dnf is affected by this as well?

@ndonegan
Copy link
Contributor Author

I've not tested with DNF, only Yum Centos 6 and 7. I've got a fix ready to rumble which simply does a yum info for each package before attempting the install, and will throw an OzException listing any missing packages if necessary.

There is an added fringe benefit that more info on each package getting installed appears in the log, however it does have the disadvantage that an extra connection has to be initiated for each package getting installed. Personally, I feel that the small bit extra time for the connections is worth it to be sure that the packages are actually going to be installed!

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

No branches or pull requests

2 participants