require RELEAEE_BUILD to be 1, not any value

This commit is contained in:
Joey Hess 2015-05-11 09:44:01 -04:00
parent 7d3b052fd4
commit 6168537c34

View file

@ -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.