[JIRA] (OVIRT-886) Yum install does not throw error on missing package

Daniel Belenky (oVirt JIRA) jira at ovirt-jira.atlassian.net
Tue Apr 10 12:57:18 UTC 2018


    [ https://ovirt-jira.atlassian.net/browse/OVIRT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36266#comment-36266 ] 

Daniel Belenky edited comment on OVIRT-886 at 4/10/18 12:57 PM:
----------------------------------------------------------------

Thinking about this, we've solved a similar issue in https://gerrit.ovirt.org/c/89948
A simple solution could be something like going through the packages in .packages and verify that they are installed. Should be something like:
{code:java}
for package in "${packages[@]}"; do rpm -q --whatprovides $package || fail; done
{code}
After this line, we can run the user's script.

The bug is actually in yum. If you try to install multiple packages and some doesn't exist in the repo, it doesn't fail.


was (Author: dbelenky at redhat.com):
Thinking about this, we've solved a similar issue in https://gerrit.ovirt.org/c/89948
A simple solution could be something like what going through the packages in .packages and verify that they are installed. Should be something like:
{code:java}
for package in "${packages[@]}"; do rpm -q --whatprovides $package || fail; done
{code}
After this line, we can run the user's script.

The bug is actually in yum. If you try to install multiple packages and some doesn't exist in the repo, it doesn't fail.

> Yum install does not throw error on missing package
> ---------------------------------------------------
>
>                 Key: OVIRT-886
>                 URL: https://ovirt-jira.atlassian.net/browse/OVIRT-886
>             Project: oVirt - virtualization made easy
>          Issue Type: Bug
>          Components: oVirt CI
>            Reporter: Gil Shinar
>            Assignee: infra
>              Labels: mock_runner.sh, standard-ci
>
    



--
This message was sent by Atlassian Jira
(v1001.0.0-SNAPSHOT#100082)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/infra/attachments/20180410/7cc81a77/attachment.html>


More information about the Infra mailing list