Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ugly hack for missing config-manager #59

Merged
merged 2 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mini-tps.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Name: mini-tps
Version: 0.1
Release: 175%{?dist}
Release: 176%{?dist}
Summary: Mini TPS - Test Package Sanity

License: GPLv2
Expand Down Expand Up @@ -73,6 +73,9 @@ install -pD -m 0755 profiles/fedora/prepare-system %{buildroot}%{_libexecdir}/mi


%changelog
* Tue May 28 2024 Jiri Popelka <[email protected]> - 0.1-176
- hack for missing config-manager

* Tue May 21 2024 Jiri Popelka <[email protected]> - 0.1-175
- revert a SELinux-related change

Expand Down
2 changes: 1 addition & 1 deletion mtps-run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ if [ -n "$SELINUX" ]; then
fi
if [ -e '/usr/sbin/setenforce' ]; then
echo "Set selinux enforce to: $SELINUX"
setenforce "$SELINUX"
setenforce "$SELINUX" || : # Always return 0 to be able to run/test in a container
else
debug "Skipping setenforce. 'setenforce' command is part of libselinux-utils package."
fi
Expand Down
5 changes: 5 additions & 0 deletions profiles/fedora/prepare-system
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ skip_if_unavailable=True
EOF
fi

# Ugly hack for
# https://github.com/fedora-ci/mini-tps/issues/57#issuecomment-2134998129
# Remove it with a proper fix for mini-tps/issues/57 !
dnf-3 -y install 'dnf-command(config-manager)'

# Make sure fedora and fedora-updates repos are enabled
"$YUMDNFCMD" config-manager --set-enabled 'fedora' 'updates'
# Disable all COPR repositories (mini-tps, ...)
Expand Down