summaryrefslogtreecommitdiffstats
path: root/redhat/docker
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2017-12-02 21:06:10 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2017-12-02 21:06:10 +0100
commit2c6b5dc9b85e94f37f166eee9da18b6d32446011 (patch)
tree2d579c038e16737cdb5a4047fe32d5af2d2fc00f /redhat/docker
parentd649bfbf62736daf7261c367e500a50fc28a2739 (diff)
downloadtde-packaging-2c6b5dc9b85e94f37f166eee9da18b6d32446011.tar.gz
tde-packaging-2c6b5dc9b85e94f37f166eee9da18b6d32446011.zip
RPM: update build scripts for opensuse TW
Diffstat (limited to 'redhat/docker')
-rwxr-xr-xredhat/docker/opensuse32.sh21
1 files changed, 15 insertions, 6 deletions
diff --git a/redhat/docker/opensuse32.sh b/redhat/docker/opensuse32.sh
index 9622efd56..a3b888c75 100755
--- a/redhat/docker/opensuse32.sh
+++ b/redhat/docker/opensuse32.sh
@@ -8,14 +8,23 @@ INSTALLROOT="/dev/shm/${IMAGE}"
sudo rm -rf "${INSTALLROOT}"
sudo mkdir -p "${INSTALLROOT}"
+if [ "${VERSION}" = "tumbleweed" ]; then
+ URL="http://download.opensuse.org/tumbleweed"
+else
+ URL="http://download.opensuse.org/distribution/leap/${VERSION}"
+fi
+
sudo zypper --root "${INSTALLROOT}" \
- ar "http://download.opensuse.org/distribution/leap/${VERSION}/repo/oss/" "oss"
-sudo zypper --root "${INSTALLROOT}" \
- ar "http://download.opensuse.org/distribution/leap/${VERSION}/repo/non-oss/" "non-oss"
-sudo zypper --root "${INSTALLROOT}" \
- ar "http://download.opensuse.org/update/leap/${VERSION}/oss/" "update-oss"
+ ar "${URL}/repo/oss/" "oss"
sudo zypper --root "${INSTALLROOT}" \
- ar "http://download.opensuse.org/update/leap/${VERSION}/non-oss/" "update-non-oss"
+ ar "${URL}/repo/non-oss/" "non-oss"
+
+if [ "${VERSION}" != "tumbleweed" ]; then
+ sudo zypper --root "${INSTALLROOT}" \
+ ar "http://download.opensuse.org/update/leap/${VERSION}/oss/" "update-oss"
+ sudo zypper --root "${INSTALLROOT}" \
+ ar "http://download.opensuse.org/update/leap/${VERSION}/non-oss/" "update-non-oss"
+fi
setarch i686 sudo zypper --root "${INSTALLROOT}" \
--gpg-auto-import-keys ref
setarch i686 sudo zypper --root "${INSTALLROOT}" \