Fixed PEP E501

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-04-23 20:38:50 +03:00
parent 102e5c1013
commit d8f1b6701b

View file

@ -56,9 +56,11 @@ class Msg:
"""Print error message if build failed """Print error message if build failed
""" """
self.template(78) self.template(78)
print(f"| Some error on the package {prgnam} [ {self.red}FAILED{self.endc} ]") print(f"| Some error on the package {prgnam} "
f"[ {self.red}FAILED{self.endc} ]")
self.template(78) self.template(78)
print(f"| See the log file in '{self.cyan}/var/log/slpkg/sbo/build_logs{self.endc}' " print(f"| See the log file in '{self.cyan}"
f"/var/log/slpkg/sbo/build_logs{self.endc}' "
f"directory or read the README file") f"directory or read the README file")
self.template(78) self.template(78)
print() # new line at end print() # new line at end
@ -76,12 +78,14 @@ class Msg:
def reading(self): def reading(self):
"""Message reading """Message reading
""" """
print(f"{self.grey}Reading package lists...{self.endc} ", end="", flush=True) print(f"{self.grey}Reading package lists...{self.endc} ",
end="", flush=True)
def resolving(self): def resolving(self):
"""Message resolving """Message resolving
""" """
print(f"{self.grey}Resolving dependencies...{self.endc} ", end="", flush=True) print(f"{self.grey}Resolving dependencies...{self.endc} ",
end="", flush=True)
def done(self): def done(self):
"""Message done """Message done
@ -157,5 +161,6 @@ class Msg:
def matching(self, packages): def matching(self, packages):
"""Message for matching packages """Message for matching packages
""" """
print(f"\nNot found package with the name [ {self.cyan}{''.join(packages)}{self.endc} ]. " print(f"\nNot found package with the name "
"Matching packages:\nNOTE: Not dependencies are resolved\n") f"[ {self.cyan}{''.join(packages)}{self.endc} ]. "
"Matching packages:\nNOTE: Not dependencies are resolved\n")