[apt-proxy-devel] r691 - branches/1.9.36/bin
Chris Halls
halls at alioth.debian.org
Tue Apr 29 08:22:30 UTC 2008
Author: halls
Date: Tue Apr 29 08:22:30 2008
New Revision: 691
Log:
Do not crash with verbose (-v) or debug (-d) options, thanks Xavier Luthi for the patch (Closes: #476278)
Modified:
branches/1.9.36/bin/apt-proxy-import
Modified: branches/1.9.36/bin/apt-proxy-import
==============================================================================
--- branches/1.9.36/bin/apt-proxy-import (original)
+++ branches/1.9.36/bin/apt-proxy-import Tue Apr 29 08:22:30 2008
@@ -78,12 +78,15 @@
if config.opts['debug']:
print 'debug'
- apiConfig.setDebug('all:9')
+ apiConfig.debug='all:9'
+ apiConfig.setDebug()
elif config.opts['verbose']:
print "verbose"
- apiConfig.setDebug('all:5')
+ apiConfig.debug='all:5'
+ apiConfig.setDebug()
if config.opts['quiet']:
- apiConfig.setDebug('all:0')
+ apiConfig.debug='all:0'
+ apiConfig.setDebug()
factory=Factory(apiConfig)
factory.configurationChanged() # Load backends
More information about the apt-proxy-devel
mailing list