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

changed message print

not longer than terminal width
parent f19c6be6
No related branches found
No related tags found
No related merge requests found
......@@ -206,11 +206,13 @@ class PacmanMirrors:
txt.QUERY_MIRRORS,
txt.TAKES_TIME))
counter = 0
c, r = miscfn.terminal_size()
for mirror in temp:
if not self.quiet:
print(" ..... {:<15}: {}: {}".format(mirror["country"],
mirror["last_sync"],
mirror["url"]), end='')
message = " ..... {:<15}: {}: {}".format(mirror["country"],
mirror["last_sync"],
mirror["url"])
print("{:.{}}".format(message, c), end='')
sys.stdout.flush()
resp_time = httpfn.get_mirror_response(mirror["url"],
quiet=self.quiet,
......@@ -348,10 +350,12 @@ class PacmanMirrors:
print(".: {} {} - {}".format(txt.INF_CLR,
txt.QUERY_MIRRORS,
txt.TAKES_TIME))
c, r = miscfn.terminal_size()
for mirror in worklist:
if not self.quiet:
print(" ..... {:<15}: {}".format(mirror["country"],
mirror["url"]), end='')
message = " ..... {:<15}: {}".format(mirror["country"],
mirror["url"])
print("{:.{}}".format(message, c), end='')
sys.stdout.flush()
resp_time = httpfn.get_mirror_response(mirror["url"],
quiet=self.quiet,
......
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