From bb11aea3fc4305f66df358325e610c241dc4a2d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Tue, 19 Aug 2008 12:29:26 +0000 Subject: [PATCH] submitrequest show: show the current state's comment --- osc/core.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/osc/core.py b/osc/core.py index 52850571..c002db3c 100755 --- a/osc/core.py +++ b/osc/core.py @@ -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' \