File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -587,7 +587,15 @@ def isVersionWithin(versionList):
587587
588588 @staticmethod
589589 def isVersionGreaterOrEqualThan (version ):
590- return Backend .getVersion () is not None and version is not None and distutils .version .LooseVersion (str (Backend .getVersion ()) or ' ' ) >= distutils .version .LooseVersion (str (version ) or ' ' )
590+ retVal = False
591+
592+ if Backend .getVersion () is not None and version is not None :
593+ try :
594+ retVal = distutils .version .LooseVersion (Backend .getVersion ()) >= distutils .version .LooseVersion (version )
595+ except :
596+ retVal = str (Backend .getVersion ()) >= str (version )
597+
598+ return retVal
591599
592600 @staticmethod
593601 def isOs (os ):
Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.4.12.35 "
21+ VERSION = "1.4.12.36 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments