1
0
Fork 0
Commit graph

4 commits

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