mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-28 10:46:15 +01:00
submitrequest show: show the current state's comment
This commit is contained in:
parent
06c5316ba2
commit
bb11aea3fc
@ -1192,6 +1192,10 @@ class SubmitReq:
|
||||
n = root.find('state')
|
||||
self.state.name, self.state.who, self.state.when \
|
||||
= n.get('name'), n.get('who'), n.get('when')
|
||||
try:
|
||||
self.state.comment = n.find('comment').text
|
||||
except:
|
||||
self.state.comment = None
|
||||
|
||||
# read the state history
|
||||
for h in root.findall('history'):
|
||||
@ -1241,15 +1245,16 @@ Message:
|
||||
%s
|
||||
|
||||
State: %-10s %s %s
|
||||
Comment: %s
|
||||
""" % (self.reqid,
|
||||
self.src_project,
|
||||
self.src_package,
|
||||
self.dst_project,
|
||||
self.dst_package,
|
||||
self.src_md5 or 'not given',
|
||||
repr(self.descr) or '',
|
||||
self.descr,
|
||||
self.state.name,
|
||||
self.state.when, self.state.who)
|
||||
self.state.when, self.state.who, self.state.comment)
|
||||
|
||||
if len(self.statehistory):
|
||||
histitems = [ '%-10s %s %s' \
|
||||
|
Loading…
Reference in New Issue
Block a user