mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
genisoinfo: add minimal usage
This commit is contained in:
parent
c5e2d04549
commit
4e8d796dab
|
|
@ -1,5 +1,8 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
# usage:
|
||||
# on server: python3 genisolist.py
|
||||
# development: python3 genisolist.py -R mirrors.tuna.tsinghua.edu.cn -T Debian
|
||||
|
||||
import os
|
||||
import re
|
||||
|
|
@ -188,7 +191,7 @@ def getJsonOutput(url_dict, prio={}):
|
|||
|
||||
raw.sort(key=lambda d: prio.get(d["distro"], 0xFFFF))
|
||||
|
||||
return json.dumps(raw)
|
||||
return json.dumps(raw, indent=2)
|
||||
|
||||
|
||||
def getImageList():
|
||||
|
|
|
|||
Loading…
Reference in New Issue