Skip to content

Commit

Permalink
Revert "lug: add support of adhoc in mirrorz generation (#440)" (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonQuantum authored Nov 28, 2023
1 parent b8f055a commit 7615b3a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions config.siyuan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ dummy:
keep: 2
partial: 5

# adhoc settings for mirrorz.json generation
mirrorz_adhoc:
homebrew-bottles:
url: "/homebrew-bottles/bottles"

repos:
# centos
# - type: shell_script
Expand Down
4 changes: 0 additions & 4 deletions lug/worker-script/mirrorz.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,10 @@ def main():
mirrorz["info"] = []
mirrors = []
sources = {item["name"]: item.get("source", "") for item in lug["repos"]}
adhoc = lug.get("mirrorz_adhoc", {})
for worker, param in summary["WorkerStatus"].items():
if worker.startswith(".") or worker == 'sjtug-internal' or worker == 'test':
continue
mirror = mirror_item(worker, param, help_items, sources)
if worker in adhoc:
for key, value in adhoc[worker].items():
mirror[key] = value
mirrors.append(mirror)

link_to(lug, summary, mirrors, help_items, sources)
Expand Down

0 comments on commit 7615b3a

Please sign in to comment.