16 Commits

Author SHA1 Message Date
Harry Chen
5f4bc1c260
Run formatter on some Python scripts
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-08-17 13:37:01 +08:00
Harry Chen
9b8f3c8dde yum-sync: avoid passing arch to reposync by default, add option to override, refactor
Signed-off-by: Harry Chen <i@harrychen.xyz>
2023-12-02 22:45:47 +08:00
Shengqi Chen
1d16b9da20
Update yum-sync.py to match tools in dokcer image
Thanks to Hongren Zheng.

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2023-12-02 17:43:13 +08:00
Miao Wang
8e5fadf16d gitlab*: add yum repo for el9 2023-11-20 18:02:50 +08:00
Yves Siegrist
5aa59a0d94
Allow centos 8-stream to be mirrored
Since the current CentOS 8 repositories are now under http://mirror.centos.org/centos/8-stream/ we need to be able to download/mirror this repository.
When using `8-stream` the script fails as it tries to evaluate stream as an integer making a range from `8` to `stream` which doesn't make sense obviously.

I did this locally and was able to mirror the `8-stream` repos. Just figured someone might also need that 😄 
Let me know if and where to add tests.
2022-11-21 16:36:02 +00:00
Zenithal
989faa98f6 remove eol repo
Ref to https://mirrors.tuna.tsinghua.edu.cn/news/remove-eol-repo/
2022-05-03 22:28:25 +08:00
z4yx
7d0074a142 calculate yum repo size from repodata in XML format 2020-09-30 20:58:16 +08:00
z4yx
cbe028f698 add the support of repodata downloading 2020-09-29 22:58:34 +08:00
z4yx
b1ae8488ac fix bugs in size calculation 2020-05-04 15:02:57 +08:00
z4yx
645118339b correct None value when repo is empty 2020-04-27 18:19:57 +08:00
z4yx
10854434e6 calc the size of yum repo 2020-04-27 16:21:33 +08:00
z4yx
c5560d6db2 flushing output for logging 2020-04-22 14:04:22 +08:00
z4yx
cd95db4fac disable the config printing 2020-04-05 22:17:46 +08:00
z4yx
f34a59810c fix URL construction 2020-04-05 21:48:40 +08:00
z4yx
4e8488e5f3 change the URL for probing 2020-04-05 21:43:56 +08:00
z4yx
f5c6db7392 add yum-sync 2020-04-05 20:40:59 +08:00