termux-tools
termux-tools copied to clipboard
How to manage incomplete mirrors?
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?
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