general mockup for simple code #166

Closed
opened 2021-05-13 19:05:31 +00:00 by papajoke · 6 comments
papajoke commented 2021-05-13 19:05:31 +00:00 (Migrated from gitlab2.manjaro.org)

https://gitlab.manjaro.org/-/snippets/634

it's a mockup not a pacman-mirror rewrite


Code "more simple" for easy contrib/maintenance

  • less code
  • not use "pool" file (no idea why exists) - download only "status.json"
get_old_params_if_exists()
read_params_script_params_and_add_to_old()
download_online_status()
filters_mirrors()
command_test_or_other()
order_mirrors_result()
print_or_write_mirrors_result()

params more unified :

  • geo-ip: removed and use --country and --continent (without parameter) for replace
  • add ! in lists for include and exclude
  • add --dns other filter as --country / --continent
  • add --save (restore not really implemented in empty command update)

start of commands (test,update,countries,mirrors,continents) for simpler use

https://gitlab.manjaro.org/-/snippets/634 it's a mockup not a pacman-mirror rewrite --- Code "more simple" for easy contrib/maintenance - less code - not use "pool" file (no idea why exists) - download only "status.json" ``` get_old_params_if_exists() read_params_script_params_and_add_to_old() download_online_status() filters_mirrors() command_test_or_other() order_mirrors_result() print_or_write_mirrors_result() ``` --- params more unified : - geo-ip: removed and use --country and --continent (without parameter) for replace - add `!` in lists for include and exclude - add `--dns` other filter as --country / --continent - add `--save` (restore not really implemented in empty command `update`) start of commands (test,update,countries,mirrors,continents) for simpler use
papajoke commented 2021-05-13 19:06:06 +00:00 (Migrated from gitlab2.manjaro.org)

changed the description

changed the description
papajoke commented 2021-05-13 19:07:02 +00:00 (Migrated from gitlab2.manjaro.org)

changed the description

changed the description
papajoke commented 2021-05-13 19:14:18 +00:00 (Migrated from gitlab2.manjaro.org)

changed the description

changed the description
papajoke commented 2021-05-13 19:15:46 +00:00 (Migrated from gitlab2.manjaro.org)

changed the description

changed the description
papajoke commented 2021-05-13 19:17:38 +00:00 (Migrated from gitlab2.manjaro.org)

changed the description

changed the description
codesardine commented 2023-09-25 14:08:43 +00:00 (Migrated from gitlab2.manjaro.org)

This is 2 years old any future suggestions should be done on a separate branch with descriptive suggestions of what those changes will achieve.

This is 2 years old any future suggestions should be done on a separate branch with descriptive suggestions of what those changes will achieve.
codesardine (Migrated from gitlab2.manjaro.org) closed this issue 2023-09-25 14:08:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
applications/pacman-mirrors#166
No description provided.