diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-01-29 18:19:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-01-29 18:19:30 +0000 |
commit | a478fce7fd130425da12219bf43ec61ba9f52bf0 (patch) | |
tree | 46ebd4d80ce492c492869fff077f0dc9e202c2e8 /debian/progress-linux.postinst | |
parent | Adding debian version 20181201-1. (diff) | |
download | progress-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-x | debian/progress-linux.postinst | 12 |
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 |