17 lines
351 B
Python
Executable File
17 lines
351 B
Python
Executable File
#!/usr/bin/env python3
|
|
import sys
|
|
from mirror_manager import update_all_mirrors, update_mirror
|
|
|
|
|
|
def main():
|
|
if len(sys.argv) == 2:
|
|
slug = sys.argv[1]
|
|
update_mirror(slug)
|
|
else:
|
|
# bump max_workers if you're feeling brave / bandwidth-rich
|
|
update_all_mirrors(max_workers=8)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|