adf39c52cf
-----BEGIN PGP SIGNATURE----- iQEcBAABAgAGBQJYW2GoAAoJEBty/58O8cX8uSAH/15dJsglP6Zie7jSSJcR6k+e PJembHn9qrqrCjmJ5EwakojySaaLhwEJKvlP54OU9v7pmUXL9gJtK2OzW54LQ41g xBHIu0Pg4z7juyHm9+1P2Sr7Mzs1pVSEbsIYpDYUU19eghI1EAeIj3I1woKgajN7 JlI61j3r67G6EAVtPOnmD1jvXS8CrtjiJ9wtWTH20pWfmksovg/GuXUCZrLkAAhO NcK35CdMii1Hkr7XOH424La/Ar+3qfUX18ZkbJY6yHzkq/ityTzzKOFjAaDl2Jg9 WNc+SLCVYpPhPwgt7miTywamUNj3ZviA5/Hd8fuLXmtHSLQ23WOtBiaQMLtwXHs= =8dIl -----END PGP SIGNATURE----- Merge tag '1.26.1' into merge-branch Release 1.21.1 Change-Id: Ib9eb3dd1d384fc5b6a9846608216e056c57a173a
27 lines
1.1 KiB
Bash
27 lines
1.1 KiB
Bash
export DISTRO_NAME=opensuse
|
|
DIB_RELEASE=${DIB_RELEASE:-42.2}
|
|
export DIB_RELEASE=${DIB_RELEASE,,}
|
|
export DIB_OPENSUSE_MIRROR=${DIB_OPENSUSE_MIRROR:-http://download.opensuse.org}
|
|
case ${DIB_RELEASE} in
|
|
# We are using "=>" as the assignment symbol since "@" "=" etc could be used in the URI itself.
|
|
# Remember, we can't export an array in bash so we use a string instead.
|
|
# Repo format: {name}=>{uri}
|
|
# Old openSUSE releases
|
|
13*)
|
|
ZYPPER_REPOS="update=>${DIB_OPENSUSE_MIRROR}/update/${DIB_RELEASE}/ "
|
|
ZYPPER_REPOS+="oss=>${DIB_OPENSUSE_MIRROR}/distribution/${DIB_RELEASE}/repo/oss/"
|
|
;;
|
|
# New Leap releases
|
|
42*)
|
|
ZYPPER_REPOS="update=>${DIB_OPENSUSE_MIRROR}/update/leap/${DIB_RELEASE}/oss/ "
|
|
ZYPPER_REPOS+="oss=>${DIB_OPENSUSE_MIRROR}/distribution/leap/${DIB_RELEASE}/repo/oss/"
|
|
;;
|
|
# Tumbleweed
|
|
tumbleweed)
|
|
ZYPPER_REPOS="update=>${DIB_OPENSUSE_MIRROR}/update/${DIB_RELEASE}/ "
|
|
ZYPPER_REPOS+="oss=>${DIB_OPENSUSE_MIRROR}/${DIB_RELEASE}/repo/oss/"
|
|
;;
|
|
*) echo "Unsupported openSUSE release: ${DIB_RELEASE}"; exit 1 ;;
|
|
esac
|
|
export ZYPPER_REPOS
|