A little oddity
Created by: fhdk
When running without parameters we are informed that a -g/--generate
is required to to generate a new mirror list.
However, if run with any parameter excluding -g/--generate
we also generate a new mirror list.
So it seems the -g/--generate parameter is only required if we want a default mirror list based on pacman-mirrors.conf
.
But what if I always want to use a specific branch say unstable
? Then I have 2 choices
- edit
pacman-mirrors.conf
by hand - always remember to supply the
-b/--branch unstable
As it is now our specialized choices is not written to pacman-mirrors.conf
but we have to supply them every time we want to refresh the mirror list. That is if we have chosen to use unstable branch we have to remember that when refreshing the mirror list or we will get errors/warnings when we run pacman -Syyu
.
From a users POV, wouldn't it be expected that the users personal choices was saved to the configuration file?
When I rewrote the code I assumed - in line with the -i/--interactive
parameter - that the country selection should be updated in the configuration, and was a bit puzzled when the review contained a remark on this addition.
So I was thinking of expanding the modify_configuration()
function to write the entire default configuration - not just the custom configuration.
I think it would be an improvement - what do you think of this?