mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
fix regarding bug report from andyroyalbattle@yahoo.it
This commit is contained in:
parent
4e300baaf2
commit
00b9d85ffc
4 changed files with 16 additions and 12 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue