Skip to content

Commit

Permalink
boostrap: Add support for CentOSStream
Browse files Browse the repository at this point in the history
currently we cannot do boostrap for CentOSStream
so we are adding support for that.

Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
  • Loading branch information
kamoltat committed Aug 25, 2022
1 parent b1d387f commit 971a849
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,26 @@ Linux)
fi
fi
;;
CentOSStream)
deps=(python3-pip python39-devel mariadb-devel libev-devel libvirt-devel libffi-devel)
for package in ${deps[@]}; do
if [ "$(rpm -q $package)" == "package $package is not installed" ]; then
missing="${missing:+$missing }$package"
fi
done
if [ -n "$missing" ]; then
echo "$0: missing required packages:" 1>&2
echo "$missing"
if [ "$install" = true ]; then
echo "Installing missing packages..."
sudo yum -y install $missing
else
echo "Please install missing packages or run './bootstrap install' if you have sudo"
echo "sudo yum -y install $missing"
exit 1
fi
fi
;;
Fedora)
deps=(python3-pip python3-devel libev-devel libvirt-devel libffi-devel)
for package in ${deps[@]}; do
Expand Down

0 comments on commit 971a849

Please sign in to comment.