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):
587
587
588
588
@staticmethod
589
589
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
591
599
592
600
@staticmethod
593
601
def isOs (os ):
Original file line number Diff line number Diff line change 18
18
from thirdparty .six import unichr as _unichr
19
19
20
20
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21
- VERSION = "1.4.12.35 "
21
+ VERSION = "1.4.12.36 "
22
22
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
23
23
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
24
24
VERSION_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