From 3a41ae64f00c8ec4f65640a430b29f9d186ca297 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 31 Aug 2017 13:57:21 +0200 Subject: [PATCH] osc tr: show the time when the event happened --- osc/commandline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index bffbbb87..1e4271ce 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -5504,7 +5504,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. xml = show_package_trigger_reason(apiurl, project, package, repository, arch) root = ET.fromstring(xml) reason = root.find('explain').text - print(reason) + triggertime = time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime(int(root.find('time').text))) + print("%s (at %s)" % (reason, triggertime)) if reason == "meta change": print("changed keys:") for package in root.findall('packagechange'):