From 600012cb4cdd75bd84eddac6cc91be20eeee0395 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 16 Jan 2025 16:09:06 +0200 Subject: [PATCH] [eos-rankmirrors] added new config EOS_SHOW_ORIGINAL_MIRRORLIST in /etc/eos-rankmirrors.conf --- eos-rankmirrors/PKGBUILD | 4 ++-- eos-rankmirrors/eos-rankmirrors | 1 + eos-rankmirrors/eos-rankmirrors.conf | 8 ++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/eos-rankmirrors/PKGBUILD b/eos-rankmirrors/PKGBUILD index 30ed18e2..56aba0bd 100644 --- a/eos-rankmirrors/PKGBUILD +++ b/eos-rankmirrors/PKGBUILD @@ -22,11 +22,11 @@ source=( $url/${pkgname}.conf $url/${pkgname}.disabled ) -sha512sums=('2f73f9f1b0057fbf2356c02926921fc81d15e5b3d0956171e9f99101462c952e57a5e01f922c2af7afb594443e21e4fde6b30617b7e41f4447f9eadab5fecdd6' +sha512sums=('de2cb20b85c9c183a6379513dc84bff040faaa26c612c2b0ed3f2379a78e5fd6bed4cafbc94a0beb5c8f6e6562595a0fcc002af66256fd6877b3b8dec819608b' 'e945c073d46abf35d9cf9042c7906bf9a1bad73760e0f06fb42c59227cf0ef1e3ea9ceeb9dc3b2185b0a37711e7b698dd28565be62e21a7bddb5f3b4a2daeee4' 'fc3113a20559ec58ffff2cacae8069ce5c83ad826f0054488315d024cb874a92ae9240fe4630bd9da647ee2cbf0e93dd22259190c703f26d21bf0b8481686a4c' 'f01f6267f624992febfec29c76f2de1c503693086ade5783e2b9cbef359f5155bf6df520ff06299193c842aef2a05cac5078977ee0dabf55cff66f44aec6e44a' - 'ffe0e2f832d513bf0ea3cd36eb6e78305fb181b6e6d261a592a51c4f0a51c807d98b78d789a22df5963045834dbf23a5725178be5526b285f43e7223e42f4e59' + 'fd315acf35a5e699caffe1e7d47660b5544b7d84e653106efd0074351a92cd8447e148b22d4ee999a76a135b13c41f927b733036f842c487de2ed40b35723cda' '06b77d1109fec45071dd2a3c1be07c225a5735961bd2818d0ccea608fef6e85bf4ae71d821427aa766d5b1934195282c1964965df7bd49602316b3bab6bf9824') package() { diff --git a/eos-rankmirrors/eos-rankmirrors b/eos-rankmirrors/eos-rankmirrors index 40c04e33..27d09232 100755 --- a/eos-rankmirrors/eos-rankmirrors +++ b/eos-rankmirrors/eos-rankmirrors @@ -721,6 +721,7 @@ Main() source $conf || DIE "Config file $conf does not exist!" ALWAYS_FIRST_EOS_MIRRORS=${ALWAYS_FIRST_EOS_MIRRORS//[,|]/ } + [ "$EOS_SHOW_ORIGINAL_MIRRORLIST" ] && show_original_list="$EOS_SHOW_ORIGINAL_MIRRORLIST" mirror_verbosity="$EOS_RANKMIRRORS_EXIT_CODE_VERBOSITY" diff --git a/eos-rankmirrors/eos-rankmirrors.conf b/eos-rankmirrors/eos-rankmirrors.conf index c9ad2722..97b66dcc 100644 --- a/eos-rankmirrors/eos-rankmirrors.conf +++ b/eos-rankmirrors/eos-rankmirrors.conf @@ -73,6 +73,14 @@ EOS_RANK_WHEN_MIRRORLIST_CHANGES=yes # EOS_KEEP_UNRANKED_LIST_BY_HOOK=no +# EOS_SHOW_ORIGINAL_MIRRORLIST determines whether to include the original unranked +# list of mirrors to the end of the ranked file. +# Supported values: +# yes (default) +# no +# +EOS_SHOW_ORIGINAL_MIRRORLIST=yes + # CMD_OPTIONS can contain your default command line options. # If the list is empty (i.e. no options), the app defaults will be used. #