Skip to content

Commit

Permalink
Strip the version read in ./version, just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
samoht committed Oct 3, 2012
1 parent 0fc823e commit d8ae7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repositories.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8ae7ec

Please sign in to comment.