ci: Don't account for SCHUTZ_OSBUILD variable

if you want to use a custom osbuild.rpm you can supply that in REPO_URL,
no?

Note: this removal of .repo files breaks building the -tests RPM from
source in downstream branches/nightlies b/c the repo is defined in
osbuild-composer.repo
This commit is contained in:
Alexander Todorov 2021-12-09 13:53:37 +02:00 committed by Sanne Raymaekers
parent e07bd4bebf
commit 8a46796cf7

View file

@ -110,13 +110,6 @@ fi
if [ -f "rhel${VERSION_ID%.*}internal.repo" ]; then
greenprint "Preparing repos for internal build testing"
sudo mv rhel"${VERSION_ID%.*}"internal.repo /etc/yum.repos.d/
# Use osbuild from schutzfile if desired for testing custom osbuild-composer packages
# specified by $REPO_URL in ENV and used in prepare-rhel-internal.sh
if [ "${SCHUTZ_OSBUILD:=false}" == true ]; then
sudo rm -f /etc/yum.repos.d/osbuild-composer.repo
else
sudo rm -f /etc/yum.repos.d/osbuild*.repo
fi
fi
greenprint "Installing test packages for ${PROJECT}"