Skip to content
Snippets Groups Projects
Commit aa216318 authored by Frede H's avatar Frede H :speech_balloon:
Browse files

renamed function

fix docstring
parent b8bd8188
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,7 @@ def ping_host(host, count=1):
return system_call("ping -c{} {} > /dev/null".format(count, host)) == 0
def update_mirrors(config, quiet=False):
def update_mirror_pool(config, quiet=False):
"""Download updates from repo.manjaro.org
:param config:
:param quiet:
......
......@@ -78,6 +78,7 @@ class PacmanMirrors:
# i686 check - change branch to x32-$branch
# sanitize config
# Check network
# Update mirror pool
# Check if mirrorlist is not to be touched - normal exit
# Handle missing network
# Load all mirrors
......@@ -91,7 +92,7 @@ class PacmanMirrors:
sys.exit(2)
self.network = httpFn.inet_conn_check()
if self.network:
httpFn.update_mirrors(self.config, quiet=self.quiet)
httpFn.update_mirror_pool(self.config, quiet=self.quiet)
if self.no_mirrorlist:
sys.exit(0)
if not self.network:
......
......@@ -57,7 +57,7 @@ class TestPacmanMirrors(unittest.TestCase):
app.config = configFn.setup_config()
fileFn.create_dir(test_conf["work_dir"])
cliFn.parse_command_line(app, True)
httpFn.update_mirrors(app.config)
httpFn.update_mirror_pool(app.config)
defaultFn.load_default_mirror_pool(app)
fasttrack.build_mirror_list(app, app.fasttrack)
......@@ -77,7 +77,7 @@ class TestPacmanMirrors(unittest.TestCase):
app.config = configFn.setup_config()
fileFn.create_dir(test_conf["work_dir"])
cliFn.parse_command_line(app, True)
httpFn.update_mirrors(app.config)
httpFn.update_mirror_pool(app.config)
defaultFn.load_default_mirror_pool(app)
common.build_mirror_list(app)
......@@ -96,7 +96,7 @@ class TestPacmanMirrors(unittest.TestCase):
app.config = configFn.setup_config()
fileFn.create_dir(test_conf["work_dir"])
cliFn.parse_command_line(app, True)
httpFn.update_mirrors(app.config)
httpFn.update_mirror_pool(app.config)
defaultFn.load_default_mirror_pool(app)
common.build_mirror_list(app)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment