--- output.py | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/output.py b/output.py index 10c7442..1b6bc70 100755 --- a/output.py +++ b/output.py @@ -1754,13 +1754,14 @@ to exit. tid = None if len(extcmds) > 1: tid = extcmds[1] - try: - int(tid) - except ValueError: - self.logger.critical(_('No transaction ID given')) - return 1, ['Failed history addon-info'] - except TypeError: - pass # No tid arg. passed, use last... + if tid == 'last': + tid = None + if tid is not None: + try: + int(tid) + except ValueError: + self.logger.critical(_('Bad transaction ID given')) + return 1, ['Failed history addon-info'] if tid is not None: old = self.history.old(tids=[tid]) -- 1.7.2.2 _______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel