output an error message for SCons 0.96.90 or older, instead of a TypeError exception
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4313 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
34b6c3357d
commit
8aa498bc5d
1 changed files with 6 additions and 1 deletions
|
@ -7,8 +7,13 @@
|
||||||
##
|
##
|
||||||
|
|
||||||
EnsurePythonVersion(1,6)
|
EnsurePythonVersion(1,6)
|
||||||
EnsureSConsVersion(0,96,91)
|
|
||||||
|
|
||||||
|
try:
|
||||||
|
EnsureSConsVersion(0,96,91)
|
||||||
|
except TypeError: # EnsureSConsVersion in older versions took only two parameters
|
||||||
|
print 'SCons 0.96.91 or greater is required, but you have an older version'
|
||||||
|
Exit(2)
|
||||||
|
|
||||||
stubs = [
|
stubs = [
|
||||||
'bzip2',
|
'bzip2',
|
||||||
'lzma',
|
'lzma',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue