@cryptotaxi247 / netdata-1 / commits / 279b583a6

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.

Austin S. Hemmelgarn committed Dec 13, 2019 at 07:33 UTC 279b583a6f8bbbb96ba2b55f37bc1ffe6f9fd81b
1 file changed +5 -1
.travis/package_management/common.py
+5 -1
@@ -80,7 +80,11 @@ def prepare_repo(container):
80 run_command(container, [os.environ["REPO_TOOL"], "install", "-y", "epel-release"])
81
82 elif str(os.environ["REPO_TOOL"]).count("apt-get") == 1:
83 - run_command(container, [os.environ["REPO_TOOL"], "update", "-y"])
83 + if str(os.environ["BUILD_STRING"]).count("debian/jessie") == 1:
84 + 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"])
85 + run_command(container, [os.environ["REPO_TOOL"], "update", "-y", '-o', 'Acquire::Check-Valid-Until=false'])
86 + else:
87 + run_command(container, [os.environ["REPO_TOOL"], "update", "-y"])
88 else:
89 run_command(container, [os.environ["REPO_TOOL"], "update", "-y"])
90