yum-sync: remove .repodata before running createrepo_c (see: tuna/issues#2290)
Some checks failed
docker-images / multi (., tunasync-scripts) (push) Has been cancelled
docker-images / multi (bandersnatch) (push) Has been cancelled
docker-images / multi (dockerfiles/rubygems, rubygems-mirror) (push) Has been cancelled
docker-images / multi (ftpsync) (push) Has been cancelled
docker-images / multi (nix-channels) (push) Has been cancelled
docker-images / multi (pub-mirror) (push) Has been cancelled
docker-images / multi (rustup-mirror) (push) Has been cancelled
docker-images / multi (shadowmire) (push) Has been cancelled
docker-images / multi (tsumugu) (push) Has been cancelled

Signed-off-by: Harry Chen <i@harrychen.xyz>
This commit is contained in:
Harry Chen 2025-08-26 00:08:37 +08:00
parent 61f0be62ba
commit 490127e384
No known key found for this signature in database

View File

@ -6,6 +6,7 @@ import tempfile
import argparse
import bz2
import gzip
import shutil
import sqlite3
import traceback
import time
@ -270,6 +271,7 @@ enabled=1
if args.download_repodata:
download_repodata(url, path)
else:
shutil.rmtree(".repodata", True)
cmd_args = [
"createrepo_c",
"--update",