<html><body>
<pre>[ https://ovirt-jira.atlassian.net/browse/OVIRT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36266#comment-36266 ]</pre>
<h3>Daniel Belenky edited comment on OVIRT-886 at 4/10/18 12:57 PM:</h3>
<p>Thinking about this, we've solved a similar issue in <a href="https://gerrit.ovirt.org/c/89948">https://gerrit.ovirt.org/c/89948</a> 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.</p>
<p>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.</p>
<p>was (Author: dbelenky@redhat.com): Thinking about this, we've solved a similar issue in <a href="https://gerrit.ovirt.org/c/89948">https://gerrit.ovirt.org/c/89948</a> 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.</p>
<p>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.</p>
<blockquote><h3>Yum install does not throw error on missing package</h3>
<pre> 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</pre></blockquote>
<p>— This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100082)</p>
<img src="https://u4043402.ct.sendgrid.net/wf/open?upn=i5TMWGV99amJbNxJpSp2-2BJ33BSM3tuiUfRTk64K-2BOjH6OfHwHF07KbWgKiV6gm3mB1II18BSBtXPREj0WkjfqAgXWnshvNmi3g7hf7kv7FqBki2RZzgFbqRnK9goqqJkcAizW7noi7EpyC7Cyq4m5LcFY7gF1dfPA71ctDJv1itP55J4TaIQ0OVOFPKLlEkDqvR5zu-2BOiUvMmzEJIbMQEdd5TIXd0EUIrZzpWk0Acbta5iy-2BWecOD-2FMYCrOtNJelFoqU6-2F4KqdOSgxH8bwLN2tTxuT9-2BcbA2iOY6-2FFV4sQ1F9M1F18NDWNdfGOGRiEmYMTfgTgO2qd6IvRKg3jfZdnLGFItZ-2BJXz1HmiZdsBYYMTXPzwxx8mYO12kl1CGuc-2BcZJvbkr6Xo8n1CQQcvaTWV2oesYxOvF0kRwmyEau79o4Ds7RQUaJLZnpzOa5Dsgp" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>