[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:56:20 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 commented on OVIRT-886:
--------------------------------------
Thinking about this, we've solved a similar issue in [https://gerrit.ovirt.org/c/89948/|here].
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 $pkg_name || 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/8ee84030/attachment.html>
More information about the Infra
mailing list