Commit 83403e99bae5fe415f30cc834e66c2e589ca46e0

antong 2011-03-02T11:02:22

Fix check for bad --sha1 option argument

1
2
3
4
5
6
7
8
9
10
11
12
13
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':