Permalink
Browse files

Strip the version read in ./version, just in case

  • Loading branch information...
samoht committed Oct 3, 2012
1 parent 0fc823e commit d8ae7ec18fd54f92994a38b039d9644505eb7e10
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/repositories.ml
View
@@ -247,7 +247,7 @@ let download r nv =
let check_version repo =
let repo_version =
- try V.of_string (Raw.to_string (Filename.read (Path.R.version repo)))
+ try V.of_string (Utils.string_strip (Raw.to_string (Filename.read (Path.R.version repo))))
with e -> V.of_string "0.7.5" in
if V.compare repo_version (V.of_string Globals.version) >= 0 then
Globals.error_and_exit

0 comments on commit d8ae7ec

Please sign in to comment.