Fork 0
Commit Graph

29 Commits (master)

Author SHA1 Message Date
Tom Willemse 2f85ddb45d Fix badge in the README 2023-07-14 00:15:15 -07:00
Tom Willemse 4057dfab9c [README] Move the Table of Contents back where it was originally 2022-11-29 23:49:04 -08:00
Tom Willemse 962a489840 Highlight default values in README 2022-11-26 17:11:10 -08:00
Tom Willemse b380afd9ea Name the configuration file in the README 2022-11-26 17:00:20 -08:00
Tom Willemse 12e6e5bf82 Mention defaults in configuration section 2022-11-26 16:54:56 -08:00
Tom Willemse 27930ff66e Move the Table of Contents under the status badge 2022-11-26 16:51:51 -08:00
Tom Willemse 6ee30aee5e Add badge for laminar build status 2022-11-26 16:25:34 -08:00
Tom Willemse 1f8fa6b386 Add note on installing with pacman 2022-11-26 16:09:43 -08:00
Tom Willemse 2e8a4a19bd Update checksums 2022-11-24 00:09:48 -08:00
Tom Willemse 0c094db4a9 Ignore files generated by ‘makepkg’ 2022-06-18 21:34:47 -07:00
Tom Willemse 4980ab6258 Add a README 2022-06-18 21:30:44 -07:00
Tom Willemse b8d4ca825e [PKGBUILD] Bump version 2022-06-18 21:04:27 -07:00
Tom Willemse 5c45e8b40a [PKGBUILD] Prevent updating from overwriting the configuration
Adding the ‘config.sh’ to the backup files means that the file doesn't get
overwritten when the package is updated.
2022-06-18 21:03:21 -07:00
Tom Willemse e882f79e73 Replace ‘-L’ with ‘--location’
This produces no difference functionally since ‘--location’ and ‘-L’ are
aliases, but generally I prefer using long argument names in scripts because
they make it clearer what is going on.
2022-06-18 21:01:20 -07:00
Tom Willemse ae4693a155 Show error messages generated by ‘curl’
The ‘-s’ switch makes ‘curl’ completely silent, even on error messages. So when
it fails it doesn't tell us why.

The ‘--no-progress-meter’ disables the normal progress meter output so that when
everything succeeds, there is no output, but when there is a failure we still
get to see what that is.
2022-06-18 20:59:10 -07:00
Tom Willemse 565813b43e Don't write the mirrorlist if it can't be downloaded
Before if the ‘curl’ command failed, it wouldn't send any output to sed, which
would succeed, and that would go into the destination file.

Now we check the status explicitly before moving on and print a message when
‘curl’ fails.
2022-06-18 20:56:33 -07:00
Tom Willemse bf6ee3888b Bump version 2021-01-18 16:58:22 -08:00
Tom Willemse 3d11eda662 Formatting 2021-01-18 16:58:07 -08:00
Tom Willemse 901defa034 Follow redirects when loading the mirror list 2021-01-18 16:31:04 -08:00
Tom Willemse 46458acd95 Update md5sum for update-mirrors in PKGBUILD 2016-12-15 14:30:13 +01:00
Tom Willemse 64689ce065 Fix shellcheck warnings 2016-10-10 13:40:39 +02:00
Tom Willemse 53f14989b8 Add PKGBUILD
Installing this package will automatically keep the pacman mirrorlist
updated whenever the pacman-mirrorlist package is updated.
2016-10-10 13:18:52 +02:00
Tom Willemse 1a44def35e Add pacman hook description
When installed in the proper place this would allow update-mirrors to
run automatically whenever pacman-mirrorlist is updated.
2016-10-10 13:17:33 +02:00
Tom Willemse 2b4e21e293 Check proper config file location 2016-10-10 13:17:15 +02:00
Tom Willemse 485057f42d Put default configuration in config.sh 2016-06-12 15:15:16 +02:00
Tom Willemse 6093fddfff Fall back to reading config from XDG_DATA_DIRS
If there is no configuration file in “$XDG_CONFIG_HOME/update-mirrors”,
try looking through directories specified in XDG_CONFIG_DIRS. If
XDG_CONFIG_DIRS is not specified, use “/etc/xdg”.

Now config files are searched for in this order:

- “$XDG_CONFIG_HOME/update-mirrors/config.sh”, or
  “$HOME/.config/update-mirrors/config.sh” if XDG_CONFIG_DIR is not
- For each DIR in XDG_CONFIG_DIRS “$DIR/update-mirrors/config.sh” is
  tried, or “/etc/xdg/update-mirrors/config.sh” if XDG_CONFIG_DIRS is
  not defined.
2016-06-12 15:05:13 +02:00
Tom Willemse a5d3cbbe2c Add option to use mirror status
Using the mirror status when updating mirrors ranks them in order of
best synchronized to worst.
2016-06-12 11:32:37 +02:00
Tom Willemse bb87e64082 Remove .pacnew if it exists 2014-04-06 11:10:40 +02:00
Tom Willemse 267ff3443c Initial commit 2014-01-18 21:02:53 +01:00