Update toolbar status

This commit is contained in:
Dimitris Zlatanidis 2015-07-06 05:46:44 +03:00
parent 707b607bee
commit 23070e979f
2 changed files with 5 additions and 5 deletions

View file

@ -546,7 +546,7 @@ class Initialization(object):
try: try:
with open("{0}{1}".format(path, archive), "w") as f: with open("{0}{1}".format(path, archive), "w") as f:
for line in contents_txt.splitlines(): for line in contents_txt.splitlines():
status(0.00005) status(0.00003)
f.write(line + "\n") f.write(line + "\n")
f.close() f.close()
except KeyboardInterrupt: except KeyboardInterrupt:
@ -666,7 +666,7 @@ class Update(object):
enabled = only enabled = only
try: try:
for repo in enabled: for repo in enabled:
sys.stdout.write("{0}Update repository {1}... {2} ".format( sys.stdout.write("{0}Update repository {1}...{2} ".format(
self.meta.color["GREY"], repo, self.meta.color["ENDC"])) self.meta.color["GREY"], repo, self.meta.color["ENDC"]))
sys.stdout.flush() sys.stdout.flush()
if repo in default: if repo in default:

View file

@ -78,21 +78,21 @@ class Msg(object):
def checking(self): def checking(self):
"""Message checking """Message checking
""" """
sys.stdout.write("{0}Checking... {1} ".format(self.meta.color["GREY"], sys.stdout.write("{0}Checking...{1} ".format(self.meta.color["GREY"],
self.meta.color["ENDC"])) self.meta.color["ENDC"]))
sys.stdout.flush() sys.stdout.flush()
def reading(self): def reading(self):
"""Message reading """Message reading
""" """
sys.stdout.write("{0}Reading package lists... {1} ".format( sys.stdout.write("{0}Reading package lists...{1} ".format(
self.meta.color["GREY"], self.meta.color["ENDC"])) self.meta.color["GREY"], self.meta.color["ENDC"]))
sys.stdout.flush() sys.stdout.flush()
def resolving(self): def resolving(self):
"""Message resolving """Message resolving
""" """
sys.stdout.write("{0}Resolving dependencies... {1} ".format( sys.stdout.write("{0}Resolving dependencies...{1} ".format(
self.meta.color["GREY"], self.meta.color["ENDC"])) self.meta.color["GREY"], self.meta.color["ENDC"]))
sys.stdout.flush() sys.stdout.flush()