daotrunghieu / rpms / cockpit

Forked from rpms/cockpit 5 years ago
Clone
Blob Blame History Raw
From 1dee51d8bc1913de6c4287b0791a2f847e6596f1 Mon Sep 17 00:00:00 2001
From: Martin Pitt <martinpitt@users.noreply.github.com>
Date: Wed, 17 May 2017 09:42:47 +0200
Subject: [PATCH 07/16] test: Disable all third-party repos in semaphore

Semaphore adds 21(!) third-party apt sources. This currently causes an
authentication failure for git as they added a PPA without adding the
corresponding public key. We don't need any packages from those
third-party sources, they only make stuff harder to reproduce locally
and package installation less reliable.

Closes #6564
Reviewed-by: Dominik Perpeet <dperpeet@redhat.com>

So disable all third-party sources in apt.
---
 tools/semaphore-prepare | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/semaphore-prepare b/tools/semaphore-prepare
index 26c4535..ab21964 100755
--- a/tools/semaphore-prepare
+++ b/tools/semaphore-prepare
@@ -1,5 +1,6 @@
 #!/bin/bash
 
 change-phantomjs-version 2.1.1
+sudo rm /etc/apt/sources.list.d/*
 sudo apt-get update
 sudo apt-get -y --no-install-recommends install autoconf automake gdb glib-networking gtk-doc-tools intltool libglib2.0-dev libgudev-1.0-dev libjavascript-minifier-xs-perl libjson-glib-dev libjson-perl libkeyutils-dev liblvm2-dev libnm-glib-dev libpam0g-dev libpcp3-dev libpcp-import1-dev libpcp-pmda3-dev libpolkit-agent-1-dev libpolkit-gobject-1-dev libssh-dev libsystemd-daemon-dev libsystemd-login-dev libsystemd-journal-dev libkrb5-dev pcp pkg-config valgrind xmlto xsltproc pyflakes npm nodejs-legacy git libfontconfig1 dbus ssh libglib2.0-0-dbg glib-networking-dbg
-- 
2.9.4