[yum-cvs] yum cli.py,1.221,1.222
Paul Nasrat
pnasrat at linux.duke.edu
Tue Jul 11 18:35:15 UTC 2006
Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv16738
Modified Files:
cli.py
Log Message:
Enable logging to work correctly for config breakages
Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.221
retrieving revision 1.222
diff -u -r1.221 -r1.222
--- cli.py 10 Jul 2006 18:02:18 -0000 1.221
+++ cli.py 11 Jul 2006 18:35:13 -0000 1.222
@@ -55,6 +55,7 @@
def __init__(self):
yum.YumBase.__init__(self)
self.in_shell = False
+ logging.basicConfig()
self.logger = logging.getLogger("yum.cli")
self.verbose_logger = logging.getLogger("yum.verbose.cli")
self.yum_cli_commands = ['update', 'install','info', 'list', 'erase',
@@ -185,7 +186,6 @@
sys.exit(1)
except ValueError, e:
self.logger.critical(_('Options Error: %s'), e)
- self.usage()
sys.exit(1)
# who are we:
More information about the Yum-cvs-commits
mailing list