From 322e7f44c1c75210bbedb28bb358a6b2bc8340c1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 4 May 2013 12:24:01 -0400 Subject: [PATCH] cabal does not like ~ in version numbers, work around (for backports) --- Build/Configure.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/Configure.hs b/Build/Configure.hs index ae51e2f9ea..d89c206d57 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) $