Changeset 514 for yum/vendor/current/shell.py
- Timestamp:
- Feb 3, 2015, 8:28:05 AM (11 years ago)
- File:
-
- 1 edited
-
yum/vendor/current/shell.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
yum/vendor/current/shell.py
r2 r514 1 #! /usr/bin/python -tt 1 2 # This program is free software; you can redistribute it and/or modify 2 3 # it under the terms of the GNU General Public License as published by … … 51 52 self.verbose_logger = logging.getLogger("yum.verbose.cli") 52 53 54 # NOTE: This is shared with self.base ... so don't reassign. 55 self._shell_history_cmds = [] 56 57 def _shell_history_add_cmds(self, cmds): 58 if not self.base.conf.history_record: 59 return 60 61 self._shell_history_cmds.append(cmds) 53 62 54 63 def _shlex_split(self, input_string): … … 98 107 self.base.cmds = self._shlex_split(self.base.cmdstring) 99 108 self.base.plugins.run('args', args=self.base.cmds) 109 110 self._shell_history_add_cmds(self.base.cmds) 100 111 101 112 try: … … 266 277 cmds.insert(0, 'repolist') 267 278 self.base.cmds = cmds 279 280 self._shell_history_add_cmds(self.base.cmds) 268 281 269 282 try: … … 343 356 self.logger.critical('\n\nExiting on Broken Pipe') 344 357 else: 345 if returnval not in [0,1 ]:358 if returnval not in [0,1,-1]: 346 359 self.verbose_logger.info('Transaction encountered a serious error.') 347 360 else: 348 361 if returnval == 1: 349 362 self.verbose_logger.info('There were non-fatal errors in the transaction') 363 elif returnval == -1: 364 self.verbose_logger.info("Transaction didn't start") 350 365 self.verbose_logger.log(logginglevels.INFO_2, 351 366 'Finished Transaction')
Note:
See TracChangeset
for help on using the changeset viewer.
