Merge "Enable opensuse-42.2 as a tested distro"

This commit is contained in:
Jenkins 2017-06-05 23:56:45 +00:00 committed by Gerrit Code Review
commit 64d20857ed
2 changed files with 9 additions and 1 deletions

View File

@ -192,7 +192,7 @@ source $TOP_DIR/stackrc
# Warn users who aren't on an explicitly supported distro, but allow them to
# override check and attempt installation with ``FORCE=yes ./stack``
if [[ ! ${DISTRO} =~ (xenial|yakkety|zesty|stretch|jessie|f24|f25|rhel7|kvmibm1) ]]; then
if [[ ! ${DISTRO} =~ (xenial|yakkety|zesty|stretch|jessie|f24|f25|opensuse-42.2|rhel7|kvmibm1) ]]; then
echo "WARNING: this script has not been tested on $DISTRO"
if [[ "$FORCE" != "yes" ]]; then
die $LINENO "If you wish to run this script anyway run with FORCE=yes"

View File

@ -60,6 +60,14 @@ export_proxy_variables
# Install Packages
# ================
if [[ "${DISTRO}" == "opensuse-42.2" ]]; then
# temporary workaround until https://bugzilla.suse.com/show_bug.cgi?id=1041161 is fixed
sudo zypper ar -f http://download.opensuse.org/update/leap/42.2-test/ leap42.2-test-updates
sudo zypper --non-interactive --gpg-auto-import-keys --no-gpg-checks ref
sudo zypper --non-interactive install liberasurecode-devel
sudo zypper rr leap42.2-test-updates
fi
# Install package requirements
PACKAGES=$(get_packages general,$ENABLED_SERVICES)
PACKAGES="$PACKAGES $(get_plugin_packages)"