Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/OCamlPro/opam
Browse files Browse the repository at this point in the history
Conflicts:
	src/opamGlobals.ml.in
  • Loading branch information
tuong committed Oct 8, 2012
2 parents d89cabb + 1bf81bd commit 6842092
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
2 changes: 2 additions & 0 deletions jenkins/10-opam-prepare.sh
@@ -0,0 +1,2 @@
#!/bin/sh
apt-get -y install ocaml libssl-dev ocaml-compiler-libs
5 changes: 5 additions & 0 deletions jenkins/20-opam-init.sh
@@ -0,0 +1,5 @@
#!/bin/sh -e
rm -rf .opam
./configure --prefix=$HOME/opam-bin
make
make install
12 changes: 12 additions & 0 deletions jenkins/30-opam-packages.sh
@@ -0,0 +1,12 @@
#!/bin/sh -ex
OPAM=$HOME/opam-bin/bin/opam
ROOT=`echo /b/${JOB_NAME} | sed -e s,=,_,g`
rm -rf ${ROOT}
$OPAM --yes --root $ROOT init .
if [ "${compiler}" != "system" ]; then
$OPAM --yes --root $ROOT switch ${compiler}
fi
if [ "${packages}" = "all" ]; then
packages=`$OPAM --root $ROOT list -short`
fi
$OPAM --yes --root $ROOT install ${packages}
13 changes: 13 additions & 0 deletions jenkins/31-opam-mirage-packages.sh
@@ -0,0 +1,13 @@
#!/bin/sh -ex
OPAM=$HOME/opam-bin/bin/opam
ROOT=`echo /b/${JOB_NAME} | sed -e s,=,_,g`
rm -rf ${ROOT}
$OPAM --yes --root $ROOT init .
$OPAM --yes --root $ROOT remote -add dev git://github.com/mirage/opam-repo-dev
if [ "${compiler}" != "system" ]; then
$OPAM --yes --root $ROOT switch ${compiler}
fi
if [ "${packages}" = "all" ]; then
packages=`$OPAM --root $ROOT list -short`
fi
$OPAM --yes --root $ROOT install ${packages}
6 changes: 1 addition & 5 deletions src/opamClient.ml
Expand Up @@ -2038,11 +2038,7 @@ let upgrade names =
let check_opam_version () =
let t = load_state () in
let n = OpamPackage.Name.of_string "opam" in
let current_version =
let v = match OpamSystem.read_command_output ["opam"; "--version"] with
| s::_ -> List.hd (List.rev (OpamMisc.split s ' '))
| _ -> assert false in
OpamPackage.Version.of_string v in
let current_version = OpamPackage.Version.of_string OpamGlobals.version in
match find_package_by_name t n with
| None -> ()
| Some _ ->
Expand Down

0 comments on commit 6842092

Please sign in to comment.