1
0
Fork 0
Commit graph

24 commits

Author SHA1 Message Date
27930ff66e Move the Table of Contents under the status badge 2022-11-26 16:51:51 -08:00
6ee30aee5e Add badge for laminar build status 2022-11-26 16:25:34 -08:00
1f8fa6b386 Add note on installing with pacman 2022-11-26 16:09:43 -08:00
2e8a4a19bd Update checksums 2022-11-24 00:09:48 -08:00
0c094db4a9 Ignore files generated by ‘makepkg’ 2022-06-18 21:34:47 -07:00
4980ab6258 Add a README 2022-06-18 21:30:44 -07:00
b8d4ca825e [PKGBUILD] Bump version 2022-06-18 21:04:27 -07:00
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
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
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
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
bf6ee3888b Bump version 2021-01-18 16:58:22 -08:00
3d11eda662 Formatting 2021-01-18 16:58:07 -08:00
901defa034 Follow redirects when loading the mirror list 2021-01-18 16:31:04 -08:00
46458acd95 Update md5sum for update-mirrors in PKGBUILD 2016-12-15 14:30:13 +01:00
64689ce065 Fix shellcheck warnings 2016-10-10 13:40:39 +02:00
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
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
2b4e21e293 Check proper config file location 2016-10-10 13:17:15 +02:00
485057f42d Put default configuration in config.sh 2016-06-12 15:15:16 +02:00
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
  defined.
- 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
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
bb87e64082 Remove .pacnew if it exists 2014-04-06 11:10:40 +02:00
267ff3443c Initial commit 2014-01-18 21:02:53 +01:00