1
0
Fork 0
Commit graph

15 commits

Author SHA1 Message Date
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