2016-10-03 14:51:18 +00:00
|
|
|
export DISTRO_NAME=opensuse
|
2016-12-09 10:33:56 +00:00
|
|
|
DIB_RELEASE=${DIB_RELEASE:-42.2}
|
2016-10-31 23:15:46 +00:00
|
|
|
export DIB_RELEASE=${DIB_RELEASE,,}
|
2016-10-03 14:51:18 +00:00
|
|
|
export DIB_OPENSUSE_MIRROR=${DIB_OPENSUSE_MIRROR:-http://download.opensuse.org}
|
2017-03-28 13:58:42 +00:00
|
|
|
export DIB_OPENSUSE_PATTERNS=patterns-openSUSE-base
|
2016-10-03 14:51:18 +00:00
|
|
|
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/"
|
|
|
|
;;
|
2016-10-31 23:15:46 +00:00
|
|
|
# Tumbleweed
|
|
|
|
tumbleweed)
|
|
|
|
ZYPPER_REPOS="update=>${DIB_OPENSUSE_MIRROR}/update/${DIB_RELEASE}/ "
|
|
|
|
ZYPPER_REPOS+="oss=>${DIB_OPENSUSE_MIRROR}/${DIB_RELEASE}/repo/oss/"
|
|
|
|
;;
|
2016-10-03 14:51:18 +00:00
|
|
|
*) echo "Unsupported openSUSE release: ${DIB_RELEASE}"; exit 1 ;;
|
|
|
|
esac
|
|
|
|
export ZYPPER_REPOS
|