From 4914d07fd577227f0d84e908cff489e104d7ec55 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Mon, 22 Sep 2014 10:05:56 -0500 Subject: Add some logging on updates --- src/launcher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/launcher.py b/src/launcher.py index 5560fe3..bbd4f42 100644 --- a/src/launcher.py +++ b/src/launcher.py @@ -64,6 +64,8 @@ class TUF(threading.Thread): targets = updater.all_targets() updated_targets = updater.updated_targets(targets, self.source_path) + if updated_targets: + print "There is updates needed. Start downloading updates." for target in updated_targets: updater.download_target(target, self.dest_path) self._set_permissions(target) @@ -74,6 +76,7 @@ class TUF(threading.Thread): filepath = sorted([f['filepath'] for f in updated_targets]) signal(proto.UPDATER_NEW_UPDATES, content=", ".join(filepath)) + print "Updates ready: ", filepath return except NotImplemented as e: print "NotImplemented: ", e -- cgit v1.2.3