mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +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"
|
||||
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"))
|
||||
process = execute("svn update %s" % rootDir, shell=True, stdout=PIPE)
|
||||
pollProcess(process)
|
||||
svnStdout, svnStderr = process.communicate()
|
||||
svnStdout, _ = process.communicate()
|
||||
|
||||
if svnStderr:
|
||||
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:
|
||||
if svnStdout:
|
||||
revision = re.search("revision\s+([\d]+)", svnStdout, re.I)
|
||||
|
||||
if revision:
|
||||
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