From 4736d466779b43473724e2ce766ccc8e1cebc3d6 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 2 Jul 2012 00:00:46 +0100 Subject: [PATCH] just in case.. --- lib/core/update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/update.py b/lib/core/update.py index fd2652133..578c24380 100644 --- a/lib/core/update.py +++ b/lib/core/update.py @@ -22,14 +22,14 @@ from lib.core.settings import UNICODE_ENCODING from lib.core.subprocessng import pollProcess def update(): + if not conf.updateAll: + return + errMsg = "sqlmap is now hosted on GitHub at https://github.com/sqlmapproject/sqlmap. " errMsg += "The --update switch is currently outdated and not working. Please, " errMsg += "update sqlmap running 'git pull' for the time being" raise sqlmapUnsupportedFeatureException, errMsg - if not conf.updateAll: - return - rootDir = paths.SQLMAP_ROOT_PATH infoMsg = "updating sqlmap to latest development version from the "