mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +01:00
Merge branch 'tr-timestamp' of https://github.com/DimStar77/osc
Show time in "osc triggerreason".
This commit is contained in:
commit
1154e5ba55
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user