fix regarding bug report from andyroyalbattle@yahoo.it

This commit is contained in:
Miroslav Stampar
2011-03-18 16:26:39 +00:00
parent 4e300baaf2
commit 00b9d85ffc
4 changed files with 16 additions and 12 deletions

View File

@@ -68,6 +68,7 @@ def update():
client = pysvn.Client()
client.callback_notify = notify
client.update(rootDir)
except ImportError, _:
debugMsg = "sqlmap will try to update itself using 'svn' command"
logger.debug(debugMsg)
@@ -79,8 +80,9 @@ def update():
svnStdout, svnStderr = process.communicate()
if svnStderr:
errMsg = svnStderr.strip()
errMsg = getUnicode(svnStderr, system=True).strip()
logger.error(errMsg)
elif svnStdout:
revision = re.search("revision\s+([\d]+)", svnStdout, re.I)