support adding an extra apt source from the build job

This commit is contained in:
Hans-Christoph Steiner 2018-06-14 15:02:42 +02:00
parent 3fa250a25b
commit 400da12f90
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@ if [[ ! -f $lockfile ]] ; then
apt_get="$apt_get $APT_GET_OPTIONS"
fi
if [ ! -z "$EXTRA_APT_SOURCE" ]; then
printf "\n$EXTRA_APT_SOURCE\n" >> /etc/apt/sources.list
fi
if [ ! -z "$DEBIAN_RELEASE" ]; then
sed -i "s, testing , $DEBIAN_RELEASE ," /etc/apt/sources.list
fi