mirrorz-org / mirrorz-help

https://help.mirrorz.org
MIT License
57 stars 43 forks source link

bug(adoptium): fix rpm url for ustc #55

Open ZenithalHourlyRate opened 1 year ago

ZenithalHourlyRate commented 1 year ago

TUNA uses yum-sync.py which does not preserve the original path; whereas USTC uses lftp

There are two ways to fix it

ZenithalHourlyRate commented 1 year ago

Actually, this applies to all help doc from TUNA that mentioned rpm URL

taoky commented 1 year ago

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 1 year ago

@taoky can it be upstreamed?

taoky commented 1 year ago

@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 1 year ago

@taoky I'll check that