From 766eab2a6a1d199863fa6aa42c59ec4497ad752c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 11 May 2015 09:44:01 -0400 Subject: require RELEAEE_BUILD to be 1, not any value --- Build/Version.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Build/Version.hs') diff --git a/Build/Version.hs b/Build/Version.hs index d2fbe6e0f..44b2b975b 100644 --- a/Build/Version.hs +++ b/Build/Version.hs @@ -20,7 +20,7 @@ type Version = String {- Set when making an official release. (Distribution vendors should set - this too.) -} isReleaseBuild :: IO Bool -isReleaseBuild = isJust <$> catchMaybeIO (getEnv "RELEASE_BUILD") +isReleaseBuild = (== Just "1") <$> catchMaybeIO (getEnv "RELEASE_BUILD") {- Version is usually based on the major version from the changelog, - plus the date of the last commit, plus the git rev of that commit. -- cgit v1.2.3