diff --git a/repose/__init__.py b/repose/__init__.py index 0a0a43a..38cf6db 100644 --- a/repose/__init__.py +++ b/repose/__init__.py @@ -1 +1 @@ -__version__ = "1.9.0" +__version__ = "1.9.1" diff --git a/repose/command/_command.py b/repose/command/_command.py index 75573e3..de575e7 100644 --- a/repose/command/_command.py +++ b/repose/command/_command.py @@ -48,7 +48,6 @@ def _init_repoq(self): return Repoq(self._load_template()) def _report_target(self, target): - if self.targets[target].out[-1][3] == 0: for line in self.targets[target].out[-1][1].splitlines(): logger.info(blue("{}".format(target)) + " - {}".format(line)) diff --git a/repose/command/list.py b/repose/command/list.py index 512d441..3ed401a 100644 --- a/repose/command/list.py +++ b/repose/command/list.py @@ -9,7 +9,6 @@ class ListRepos(Command): command = True def run(self): - self.targets.read_repos() self.targets.report_repos(self.display.list_update_repos) self.targets.close() diff --git a/repose/command/uninstall.py b/repose/command/uninstall.py index 86a23da..9aea04b 100644 --- a/repose/command/uninstall.py +++ b/repose/command/uninstall.py @@ -51,7 +51,6 @@ def _run(self, orepa, host): self._report_target(host) def run(self): - self.targets.read_repos() self.targets.parse_repos() orepa = [] diff --git a/repose/connection.py b/repose/connection.py index bfa17c6..b5155e6 100644 --- a/repose/connection.py +++ b/repose/connection.py @@ -345,7 +345,6 @@ def readlink(self, path): return link def is_active(self): - return self.client._transport and self.client._transport.is_active() def close(self): diff --git a/repose/display.py b/repose/display.py index e84cd38..b76d0c4 100644 --- a/repose/display.py +++ b/repose/display.py @@ -15,7 +15,6 @@ def list_products(self, hostname, port, system): self.println() def list_update_repos(self, hostname, port, repos): - self.println( "{} on {}:{}".format(green("Repositories"), blue(hostname), blue(str(port))) ) diff --git a/repose/main.py b/repose/main.py index 2243440..67f738f 100644 --- a/repose/main.py +++ b/repose/main.py @@ -5,7 +5,6 @@ def main(): - parser = get_parser() if len(sys.argv) < 1: parser.print_help() diff --git a/repose/messages.py b/repose/messages.py index a10c6e8..0cdd4b4 100644 --- a/repose/messages.py +++ b/repose/messages.py @@ -61,6 +61,8 @@ def __init__(self, product): self.product = product def __str__(self): - return "Unsupported product {} version {}".format( - self.product.name, self.product.version + message = ( + f"Unknow product {self.product.name} version {self.product.version}.\n" ) + message += "Please update products.yaml file with product definition" + return message