From e61e19ee82b8b35decdaa4151aa9d4762b8153cb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 27 May 2017 23:43:05 +0200 Subject: [PATCH] Enable opensuse-42.2 as a tested distro openSUSE 42.2 passes testing on the experimental gate and in order to add it as continuosly tested target we need to add it to the positive list of tested distributions. Change-Id: I46f94cfad828534f324994c3d21bddff40e8f9a2 --- stack.sh | 2 +- tools/install_prereqs.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index 83da1c61cb..8989ad6141 100755 --- a/stack.sh +++ b/stack.sh @@ -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" diff --git a/tools/install_prereqs.sh b/tools/install_prereqs.sh index da59093581..a77eae6fe7 100755 --- a/tools/install_prereqs.sh +++ b/tools/install_prereqs.sh @@ -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)"