summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-05-17 11:24:18 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-05-17 11:24:18 -0400
commit728ef328ec233ebf680ecc7f083ca5751f87edf9 (patch)
treec489d6158d2ce8cf935310a109fea81a1371eee1
parent4f2547f065f4598cec8b44708cd9e915dd5130b3 (diff)
Sanitize debian changelog version before putting it into cabal file. Closes: #708619
-rw-r--r--Build/Configure.hs4
-rw-r--r--debian/changelog7
2 files changed, 10 insertions, 1 deletions
diff --git a/Build/Configure.hs b/Build/Configure.hs
index e57b79257..65ba375bf 100644
--- a/Build/Configure.hs
+++ b/Build/Configure.hs
@@ -10,6 +10,7 @@ import System.FilePath
import System.Environment
import Data.Maybe
import Control.Monad.IfElse
+import Data.Char
import Build.TestConfig
import Utility.SafeCommand
@@ -129,7 +130,8 @@ getSshConnectionCaching = Config "sshconnectioncaching" . BoolConfig <$>
{- Set up cabal file with version. -}
cabalSetup :: IO ()
cabalSetup = do
- version <- takeWhile (/= '~') <$> getChangelogVersion
+ version <- takeWhile (\c -> isDigit c || c == '.')
+ <$> getChangelogVersion
cabal <- readFile cabalfile
writeFile tmpcabalfile $ unlines $
map (setfield "Version" version) $
diff --git a/debian/changelog b/debian/changelog
index 0eb8eefb6..4d40c43b1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+git-annex (4.20130517) UNRELEASED; urgency=low
+
+ * Sanitize debian changelog version before putting it into cabal file.
+ Closes: #708619
+
+ -- Joey Hess <joeyh@debian.org> Fri, 17 May 2013 11:17:03 -0400
+
git-annex (4.20130516) unstable; urgency=low
* Android: The webapp is ported and working.