bug(adoptium): fix rpm url for ustc
Opened this issue · 5 comments
ZenithalHourlyRate commented
TUNA uses yum-sync.py which does not preserve the original path; whereas USTC uses lftp
- https://mirrors.help/Adoptium/
- https://mirrors.tuna.tsinghua.edu.cn/Adoptium/rpm/centos7-x86_64/
- https://mirrors.ustc.edu.cn/adoptium/rpm/centos/
There are two ways to fix it
- add another section for ustc
- change tuna yum-sync script (already proposed in tuna/issues#1101)
ZenithalHourlyRate commented
- change tuna yum-sync script (already proposed in 请求设置MySQL yum 源的镜像目录结构和上游一样 tuna/issues#1101)
Actually, this applies to all help doc from TUNA that mentioned rpm URL
taoky commented
For adoptium syncing, we are not using lftp
. Instead we use a modified yum-sync.py to keep the structure same as upstream.
ZenithalHourlyRate commented
@taoky can it be upstreamed?
taoky commented
@taoky can it be upstreamed?
It's implemented by allowing working_dir
to be processed by substitute_vars()
. I'm not sure how to backport this feature as there're other changes within this script.
https://github.com/ustclug/ustcmirror-images/blob/master/yum-sync/tunasync/yum-sync.py
ZenithalHourlyRate commented
@taoky I'll check that