summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Packaging/Debian/update_debian_repo.sh')
-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