mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-25 19:33:48 +03:00
fix for a "accept certificate first time for svn"
This commit is contained in:
parent
a883ce26b5
commit
5346ecbb56
|
@ -74,24 +74,19 @@ def update():
|
||||||
debugMsg = "sqlmap will try to update itself using 'svn' command"
|
debugMsg = "sqlmap will try to update itself using 'svn' command"
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
process = execute("svn update %s" % rootDir, shell=True, stdout=PIPE, stderr=PIPE)
|
|
||||||
|
|
||||||
dataToStdout("\r[%s] [INFO] update in progress " % time.strftime("%X"))
|
dataToStdout("\r[%s] [INFO] update in progress " % time.strftime("%X"))
|
||||||
|
process = execute("svn update %s" % rootDir, shell=True, stdout=PIPE)
|
||||||
pollProcess(process)
|
pollProcess(process)
|
||||||
svnStdout, svnStderr = process.communicate()
|
svnStdout, _ = process.communicate()
|
||||||
|
|
||||||
if svnStderr:
|
if svnStdout:
|
||||||
errMsg = getUnicode(svnStderr, system=True).strip()
|
|
||||||
logger.error(errMsg)
|
|
||||||
|
|
||||||
if IS_WIN:
|
|
||||||
infoMsg = "for Windows platform it's recommended "
|
|
||||||
infoMsg += "to use a TortoiseSVN GUI client for updating "
|
|
||||||
infoMsg += "purposes (http://tortoisesvn.net/)"
|
|
||||||
logger.info(infoMsg)
|
|
||||||
|
|
||||||
elif svnStdout:
|
|
||||||
revision = re.search("revision\s+([\d]+)", svnStdout, re.I)
|
revision = re.search("revision\s+([\d]+)", svnStdout, re.I)
|
||||||
|
|
||||||
if revision:
|
if revision:
|
||||||
logger.info('updated to the latest revision %s' % revision.group(1))
|
logger.info('updated to the latest revision %s' % revision.group(1))
|
||||||
|
|
||||||
|
if IS_WIN:
|
||||||
|
infoMsg = "for Windows platform it's recommended "
|
||||||
|
infoMsg += "to use a TortoiseSVN GUI client for updating "
|
||||||
|
infoMsg += "purposes (http://tortoisesvn.net/)"
|
||||||
|
logger.info(infoMsg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user