termux-tools icon indicating copy to clipboard operation
termux-tools copied to clipboard

How to manage incomplete mirrors?

Open 2096779623 opened this issue 2 years ago • 1 comments

Example(Currently) : https://github.com/termux/termux-packages/issues/11539

In How to mirror the official repositories :

or to sync only the main repository:

It may take some work if someone want to add to termux's mirror list.

If ROOT, X11 are both null (or one of them) :

[*] Mirror mirrors.tuna.tsinghua.edu.cn selected
[*] pkg --check-mirror update
Testing the available mirrors:                  
[*] (1) : bad
Error: None of the mirrors are accessible
.../mirrors/china $

My thought: make a tips?

2096779623 avatar Aug 11 '22 14:08 2096779623

termux-change-repo can remember currently set mirror URLs and overwrite them if replacement is available.

For example, currently set mirror:

  • main: https://termux-official/main
  • x11: https://termux-official/x11

When user selects a mirror (assume its host is mirror1) that provides only main repo, then URLs will be:

  • main: https://mirror1/main
  • x11: https://termux-official/x11

sylirre avatar Aug 11 '22 16:08 sylirre