e8e22ec5fe
In order to find out dependencies resolution conflict with in a repo, repoclosure is added. Initially we added tripleo packages to exception list as it was failing earlier as we were not checking it properly. delorean-tripleo-component comes from delrean.repo and release file also layout delorean-current repo with including packages which overrides the packages config leading to packages conflicts. As both the repos are same, initially we disable all repos and enable all delorean repos but we need to disable only delorean current repo to avoid overriding due to include packages in the end. Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com> Change-Id: I55ede9aa7741b0fa3604c97bd42c43a22f1d1fe3
36 lines
735 B
Django/Jinja
36 lines
735 B
Django/Jinja
#!/bin/bash
|
|
set -x
|
|
set -o pipefail
|
|
|
|
### --start_docs
|
|
## Execute repoclosure w/ options
|
|
## ==============================
|
|
|
|
## * run repoclosure
|
|
## ::
|
|
|
|
EXIT_CODE=0
|
|
|
|
{% for repo_name in yum_repos.stdout_lines %}
|
|
|
|
echo "*********************** repo: {{ repo_name }} *****************"
|
|
{% if repo_name in repoclosure_exclude_repos %}
|
|
|
|
echo "skipping, {{ repo_name }} is in var repoclosure_exclude_repos"
|
|
|
|
{% else %}
|
|
|
|
dnf repoclosure --newest --check {{ repo_name }} --disablerepo '*' \
|
|
{{ repoclosure_include_repos|join(' ') }} \
|
|
--excludepkgs {{ repoclosure_exclude_pkgs|join(',') }} \
|
|
--disablerepo 'delorean-current'
|
|
if [ "$?" -ne 0 ]; then
|
|
EXIT_CODE=1
|
|
fi
|
|
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
exit $EXIT_CODE
|
|
### --stop_docs
|