Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to manage incomplete mirrors? #6

Open
2096779623 opened this issue Aug 11, 2022 · 1 comment
Open

How to manage incomplete mirrors? #6

2096779623 opened this issue Aug 11, 2022 · 1 comment

Comments

@2096779623
Copy link
Member

2096779623 commented Aug 11, 2022

Example(Currently) : termux/termux-packages#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?

@sylirre
Copy link
Member

sylirre commented Aug 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants