summaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2019-12-13 07:33:42 -0500
committerGitHub <noreply@github.com>2019-12-13 07:33:42 -0500
commit279b583a6f8bbbb96ba2b55f37bc1ffe6f9fd81b (patch)
tree5ff49b314cfcbc2ef947ffdf40037815bc01432b /.travis
parentdd8b13dd570f002bf31f901cf24516119ec8280c (diff)
Inject archived backports repository on Debian Jessie for CI package builds. (#7495)
* Inject archived backports repository on Debian Jessie. Debian Jessie only ever had libuv1 as a backport, not part of the base release. This means that we need the backports repository on Jessie for the build to work, which has been archived. This updates the environment prep script for building Debian packages for Jessie to inject a file into `/etc/apt/sources.list.d` to add in the archived repository so that everything works correctly. * Change how the archived backports are injected for jessie. This shifts to just appending to the main sources.list file, which should be more reliable. It also explicitly updates caches after changing the sources. * Switch back to using a separate sources file. * Moved Jessie archived backports handling to repo setup function. This makes the code a bit cleaner overall. Also, we need to disable validity checking for the archives during the call to `apt-get update` otherwise things will just refuse to work. * Fix syntax error.
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/package_management/common.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/.travis/package_management/common.py b/.travis/package_management/common.py
index 8a5106971a..7999d8be25 100755
--- a/.travis/package_management/common.py
+++ b/.travis/package_management/common.py
@@ -80,7 +80,11 @@ def prepare_repo(container):
run_command(container, [os.environ["REPO_TOOL"], "install", "-y", "epel-release"])
elif str(os.environ["REPO_TOOL"]).count("apt-get") == 1:
- run_command(container, [os.environ["REPO_TOOL"], "update", "-y"])
+ if str(os.environ["BUILD_STRING"]).count("debian/jessie") == 1:
+ run_command(container, ["bash", "-c", "echo deb http://archive.debian.org/debian/ jessie-backports main contrib non-free >> /etc/apt/sources.list.d/99-archived.list"])
+ run_command(container, [os.environ["REPO_TOOL"], "update", "-y", '-o', 'Acquire::Check-Valid-Until=false'])
+ else:
+ run_command(container, [os.environ["REPO_TOOL"], "update", "-y"])
else:
run_command(container, [os.environ["REPO_TOOL"], "update", "-y"])