mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-12-25 16:32:47 +00:00
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
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:
parent
61f0be62ba
commit
490127e384
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue