summaryrefslogtreecommitdiff
path: root/Build/Configure.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-05-04 12:24:01 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-05-04 12:24:01 -0400
commitfe1f6d17289b516014c2771160ff01f3c58e9822 (patch)
treefd0506738dcedeadab8f175691336d542fc4809e /Build/Configure.hs
parent19013eef7800fba8bfbaa5ca47a7c06f52a07164 (diff)
cabal does not like ~ in version numbers, work around (for backports)
Diffstat (limited to 'Build/Configure.hs')
-rw-r--r--Build/Configure.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/Configure.hs b/Build/Configure.hs
index ae51e2f9e..d89c206d5 100644
--- a/Build/Configure.hs
+++ b/Build/Configure.hs
@@ -120,7 +120,7 @@ getSshConnectionCaching = Config "sshconnectioncaching" . BoolConfig <$>
{- Set up cabal file with version. -}
cabalSetup :: IO ()
cabalSetup = do
- version <- getChangelogVersion
+ version <- takeWhile (/= '~') <$> getChangelogVersion
cabal <- readFile cabalfile
writeFile tmpcabalfile $ unlines $
map (setfield "Version" version) $