Show apt sources and preferences used in the CI builds
This may be useful to understand where do the packages come from.
This commit is contained in:
@@ -11,6 +11,13 @@ SUDO=sudo
|
|||||||
case $(uname -s) in
|
case $(uname -s) in
|
||||||
Linux)
|
Linux)
|
||||||
if [ -f /etc/apt/sources.list ]; then
|
if [ -f /etc/apt/sources.list ]; then
|
||||||
|
# Show information about the repositories and priorities used.
|
||||||
|
echo 'APT sources used:'
|
||||||
|
$SUDO grep --no-messages '^[^#]' /etc/apt/sources.list /etc/apt/sources.list.d/* || true
|
||||||
|
echo 'APT preferences:'
|
||||||
|
$SUDO grep --no-messages '^[^#]' /etc/apt/preferences /etc/apt/preferences.d/* || true
|
||||||
|
echo '--- End of APT files dump ---'
|
||||||
|
|
||||||
run_apt() {
|
run_apt() {
|
||||||
echo "Running apt-get $@"
|
echo "Running apt-get $@"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user