Merge lp:~bzoltan/click/vivid-transition_mirrors into lp:ubuntu/vivid-proposed/click
| Status: | Merged |
|---|---|
| Merge reported by: | Michael Vogt |
| Merged at revision: | not available |
| Proposed branch: | lp:~bzoltan/click/vivid-transition_mirrors |
| Merge into: | lp:ubuntu/vivid-proposed/click |
| Diff against target: |
100 lines (+28/-5) 2 files modified
click/chroot.py (+26/-3) debian/control (+2/-2) |
| To merge this branch: | bzr merge lp:~bzoltan/click/vivid-transition_mirrors |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Vogt | 2015-01-19 | Approve on 2015-01-26 | |
|
Review via email:
|
|||
Commit Message
Transition of locally used mirror servers to the chroots.
Description of the Change
Transition of locally used mirror servers to the chroots.
| Zoltan Balogh (bzoltan) wrote : | # |
| Rex Tsai (chihchun) wrote : | # |
Feedback and summing-up of irc discussion
Ubuntu users are suggested to use [countrycode]
It would make more sense that user can pick a mirror server during the new `click root` setup
1. A dialogue for user to pick which mirror to use. [countrycode]
2. The dialogue should suggest the default or preferred mirror server for the user. software-properties use user's locale to guess where is the most close mirror site.
Please note only [countrycode]
- 66. By Zoltan Balogh on 2015-01-21
-
Use the local archive mirror and figure out the ports mirror with geoip lookup
- 67. By Zoltan Balogh on 2015-01-21
-
remove redundant imports
- 68. By Zoltan Balogh on 2015-01-21
-
Use the official archive mirror
- 69. By Zoltan Balogh on 2015-01-21
-
Make it flake8 friendly
- 70. By Zoltan Balogh on 2015-01-22
-
remove unused local_mirror_server
- 71. By Zoltan Balogh on 2015-01-23
-
Handle exception when chroot is created without network and add dependecies
| Michael Vogt (mvo) wrote : | # |
This got merged in http://

Some explanation on the MR:
I have chosen to use the local ports and archive mirror because other options seems to be less optimal:
a) There is a way to measure bandwidth to/from the apt's mirror support, but that give a geographically close mirror and not a mirror with a fast access
b) Measuring the bandwidth to mirrors and trying to find the most optimal would need way much more code and would be too complex for a fairly simple problem
I decided to use a strict and limited expression to find the locally used mirror. I accept only the /XX.archive. ubuntu. com $series main/ source line. In case I do not find the mirror the code falls back to the central archive what is a safe choice.
All in all, the job here is to make the Chinese app developer's life easy. I am sure that we can make a more generic and smarter solution to support Ubuntu mirrors, but this one I believe is safe and good enough for now. Also I think it is legit idea to use the same mirror in the chroots what is used on the SDK's host environment.