cabal does not like ~ in version numbers, work around (for backports)

This commit is contained in:
Joey Hess 2013-05-04 12:24:01 -04:00
parent 11fa9f809a
commit 322e7f44c1

View file

@ -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) $