From a478fce7fd130425da12219bf43ec61ba9f52bf0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 29 Jan 2019 19:19:30 +0100 Subject: Adding support for restricted archive area. Signed-off-by: Daniel Baumann --- debian/progress-linux.postinst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'debian/progress-linux.postinst') 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 -- cgit v1.2.3