Fix check for bad --sha1 option argument
diff --git a/wscript b/wscript
index 0b2b105..7c6bba4 100644
--- a/wscript
+++ b/wscript
@@ -74,7 +74,7 @@ def configure(conf):
conf.env.DEFINES += ['GIT2_SQLITE_BACKEND']
if conf.options.sha1 not in ['openssl', 'ppc', 'builtin']:
- ctx.fatal('Invalid SHA1 option')
+ conf.fatal('Invalid SHA1 option')
# check for libcrypto (openssl) if we are using its SHA1 functions
if conf.options.sha1 == 'openssl':