summaryrefslogtreecommitdiffstats
path: root/debian/progress-linux.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-29 18:19:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-29 18:19:30 +0000
commita478fce7fd130425da12219bf43ec61ba9f52bf0 (patch)
tree46ebd4d80ce492c492869fff077f0dc9e202c2e8 /debian/progress-linux.postinst
parentAdding debian version 20181201-1. (diff)
downloadprogress-linux-a478fce7fd130425da12219bf43ec61ba9f52bf0.tar.xz
progress-linux-a478fce7fd130425da12219bf43ec61ba9f52bf0.zip
Adding support for restricted archive area.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/progress-linux.postinst')
-rwxr-xr-xdebian/progress-linux.postinst12
1 files changed, 11 insertions, 1 deletions
diff --git a/debian/progress-linux.postinst b/debian/progress-linux.postinst
index 70414bd..c6be2f4 100755
--- a/debian/progress-linux.postinst
+++ b/debian/progress-linux.postinst
@@ -43,9 +43,19 @@ Configure ()
{
ARCHIVE="${1}"
+ case "${ARCHIVE}" in
+ *-extras)
+ AREAS="${ARCHIVE_AREAS}"
+ ;;
+
+ *)
+ AREAS="$(echo ${ARCHIVE_AREAS} | sed -e 's| restricted||')"
+ ;;
+ esac
+
# apt sources
cat >> /etc/apt/sources.list.d/progress-linux.list << EOF
-deb https://deb.progress-linux.org/packages ${ARCHIVE} ${ARCHIVE_AREAS}
+deb https://deb.progress-linux.org/packages ${ARCHIVE} ${AREAS}
EOF
# apt preferences