diff options
author | Ruben Pollan <meskio@sindominio.net> | 2014-09-22 10:05:56 -0500 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2014-09-22 10:05:56 -0500 |
commit | 4914d07fd577227f0d84e908cff489e104d7ec55 (patch) | |
tree | 2e6e69430084628a06fc9c36cd4212c3ecad4e63 | |
parent | f3602cd5a58511a48ce572868d1369f2fb94e1ff (diff) |
Add some logging on updates
-rw-r--r-- | src/launcher.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |