summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThanos Doukoudakis <thanos.doukoudakis@isode.com>2017-12-20 13:34:19 (GMT)
committerThanos Doukoudakis <thanos.doukoudakis@isode.com>2017-12-20 14:09:08 (GMT)
commit2b185f0b25aede6e2f40a678647c78bb8e7f8638 (patch)
tree865c291f251c37233db2af53ad6777863905ad19 /Swift/Packaging
parent3bae7863e235559ceefb7b4e0c9bcf65dba76c00 (diff)
downloadswift-2b185f0b25aede6e2f40a678647c78bb8e7f8638.zip
swift-2b185f0b25aede6e2f40a678647c78bb8e7f8638.tar.bz2
Allow define the debian repositories to upload
This patch uses SWIFT_PACKAGE_PLATFORMS variable and only updates the repositories that are defined there. Test-Information Tested the script on Ubuntu 16.04 when the variable is/not defined Change-Id: Ie8f65441f558e3ac663eb8493cedd8c0d2630753
Diffstat (limited to 'Swift/Packaging')
-rw-r--r--Swift/Packaging/Debian/update_debian_repo.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/Swift/Packaging/Debian/update_debian_repo.sh b/Swift/Packaging/Debian/update_debian_repo.sh
index d62a376..26c0d5b 100644
--- a/Swift/Packaging/Debian/update_debian_repo.sh
+++ b/Swift/Packaging/Debian/update_debian_repo.sh
@@ -75,2 +75,8 @@ mkdir -p $APT_REPO_ROOT
+if [ -z ${SWIFT_PACKAGE_PLATFORMS+x} ]; then
+ platformsarray=( xenial yakkety jessie sid )
+else
+ platformsarray=( $SWIFT_PACKAGE_PLATFORMS )
+fi
+
# distros
@@ -81,2 +87,7 @@ for full_distribution_path in $INCOMING_FOLDER/{debian,ubuntu}/*; do
+ if ! [[ $SWIFT_PACKAGE_PLATFORMS == *"$distro_name"* ]]; then
+ echo "$distro_name was not found in SWIFT_PACKAGE_PLATFORMS. Skipping..."
+ continue
+ fi
+
# ensure reprepro diretctory for this distribution version is present
@@ -91,3 +102,3 @@ for full_distribution_path in $INCOMING_FOLDER/{debian,ubuntu}/*; do
- # This is workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808558
+ # This is workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808558
# and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=843402