Skip to content

Commit

Permalink
[eos-rankmirrors] added support for config EOS_RANK_WHEN_MIRRORLIST_C…
Browse files Browse the repository at this point in the history
…HANGES
  • Loading branch information
manuel-192 committed Feb 7, 2024
1 parent 65f25b3 commit 05f6c80
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eos-rankmirrors/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: EndeavourOS <[email protected]>

pkgname=eos-rankmirrors
pkgver=24
pkgver=24.1
pkgrel=1
pkgdesc="EndeavourOS mirror ranking tool"
arch=('any')
Expand All @@ -24,9 +24,9 @@ source=(
)
sha512sums=('0edc04542fa95c97c031555a8993dc1be291d4eae38ef19c8a634249870552cff4d62adca843580941ab2d4015f65216d34fa2172ed21fa35e38c1f09f6db550'
'ccfe87b9107618578042dd1379bc080f8df9da85b0a03c0a2b8ddfbd2c2a6a417964b3a83c74a949063aa5c145e8083a69e05bade59cfc938467ea08fb63d945'
'580511c676cf56b5b8580d6819e0d1a4c85a40a3cd10f4b4f04fb9c004b14025b56cf4c3048e0fe8f9eef48d924b32b97d1e9669fac39b96f4203e2d68e3bd07'
'8475d9697ad42de23c59eab7b7923af1b6759026e376b0d053ae867860e254d65b719e0f859268492fde5d7874e1e3cd6ae76c2f417438c8be689cfdb028f108'
'f01f6267f624992febfec29c76f2de1c503693086ade5783e2b9cbef359f5155bf6df520ff06299193c842aef2a05cac5078977ee0dabf55cff66f44aec6e44a'
'a95c38c8d359b054a77a11dec6ea774e3e4c62dcb7f667eaf24e62a2066f12e98da43d2dbf622fd0b9efcce15e6a8c1655afd8dc753c0705b527891f74f8b479'
'c03646fd5525ee4abe2b2e1e5c453fb366505b6bf470cc16ddfad22951eb1ecadf2ef1bb124d8ea3d39580c57013163b6f6a02e612451180f31f74845c9d7d3e'
'06b77d1109fec45071dd2a3c1be07c225a5735961bd2818d0ccea608fef6e85bf4ae71d821427aa766d5b1934195282c1964965df7bd49602316b3bab6bf9824')

package() {
Expand Down
5 changes: 5 additions & 0 deletions eos-rankmirrors/eos-rankmirrors-from-hook
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Main() {
local conf=/etc/eos-rankmirrors.conf
source $conf || return

case "$EOS_RANK_WHEN_MIRRORLIST_CHANGES" in
yes | "") ;;
no | *) return ;;
esac

local timeout="$EOS_AUTORANK_TIMEOUT"
[ -n "$timeout" ] || timeout=30

Expand Down
7 changes: 7 additions & 0 deletions eos-rankmirrors/eos-rankmirrors.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ EOS_IGNORED_MIRRORS=()
#
EOS_RANKMIRRORS_EXIT_CODE_VERBOSITY=show

# EOS_RANK_WHEN_MIRRORLIST_CHANGES specifies whether to automatically run eos-rankmirrors
# when package 'endeavouos-mirrorlist' gets an update.
# Supported values:
# yes (default for backwards compatibility)
# no
#
EOS_RANK_WHEN_MIRRORLIST_CHANGES=yes

0 comments on commit 05f6c80

Please sign in to comment.