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

visual: honor quiet switch

parent c2d42e25
No related branches found
No related tags found
No related merge requests found
......@@ -209,14 +209,16 @@ class PacmanMirrors:
resp_time = httpfn.get_mirror_response(mirror["url"],
quiet=self.quiet,
maxwait=self.max_wait_time)
print(" ..... {:<15}: {}: {}".format(mirror["country"],
mirror["last_sync"],
mirror["url"]), end='')
if not self.quiet:
print(" ..... {:<15}: {}: {}".format(mirror["country"],
mirror["last_sync"],
mirror["url"]), end='')
sys.stdout.flush()
mirror["resp_time"] = resp_time
if resp_time == txt.SERVER_RES:
continue
print("\r {:<5}{}{} ".format(txt.GS, resp_time, txt.CE))
if not self.quiet:
print("\r {:<5}{}{} ".format(txt.GS, resp_time, txt.CE))
sys.stdout.flush()
worklist.append(mirror)
counter += 1
......
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