mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-31 20:26:13 +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')
|
n = root.find('state')
|
||||||
self.state.name, self.state.who, self.state.when \
|
self.state.name, self.state.who, self.state.when \
|
||||||
= n.get('name'), n.get('who'), n.get('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
|
# read the state history
|
||||||
for h in root.findall('history'):
|
for h in root.findall('history'):
|
||||||
@ -1241,15 +1245,16 @@ Message:
|
|||||||
%s
|
%s
|
||||||
|
|
||||||
State: %-10s %s %s
|
State: %-10s %s %s
|
||||||
|
Comment: %s
|
||||||
""" % (self.reqid,
|
""" % (self.reqid,
|
||||||
self.src_project,
|
self.src_project,
|
||||||
self.src_package,
|
self.src_package,
|
||||||
self.dst_project,
|
self.dst_project,
|
||||||
self.dst_package,
|
self.dst_package,
|
||||||
self.src_md5 or 'not given',
|
self.src_md5 or 'not given',
|
||||||
repr(self.descr) or '',
|
self.descr,
|
||||||
self.state.name,
|
self.state.name,
|
||||||
self.state.when, self.state.who)
|
self.state.when, self.state.who, self.state.comment)
|
||||||
|
|
||||||
if len(self.statehistory):
|
if len(self.statehistory):
|
||||||
histitems = [ '%-10s %s %s' \
|
histitems = [ '%-10s %s %s' \
|
||||||
|
Loading…
Reference in New Issue
Block a user