Permalink
Commits on Jul 17, 2012
  1. Bump version number

    committed Jul 17, 2012
  2. Update CHANGES

    committed Jul 17, 2012
  3. Export OCAML_TOPLEVEL_PATH (=~/.opam/<alias>/lib/toplevel)

    The goal is to be able to use 'ocaml -I $OCAML_TOPLEVEL_PATH'
    
    This is not ideal, but better than nothing. I'm a bit relunctant for now on to install a wrapper, around ocaml to automatically install the -I ..., as it may interfere with existing aliases (as people use either 'alias ocaml=ledit ocaml' or 'alias ocaml=rlwrap'). This can be changed later, when I'm convince I will not break anything or when we choose to install an improved toplevel by default.
    committed Jul 17, 2012
  4. Add stublibs and toplevel variables in the configuration package, so …

    …packages can start to use them.
    committed Jul 17, 2012
  5. Remove the build dir when we remove a library. This doesn't change th…

    …e behavior of reinstall, it just clean up more space.
    committed Jul 17, 2012
  6. GC old files on 'opam update'

    This will fix #24 and #49
    committed Jul 17, 2012
  7. [N.t comparison] names of packages are compared in case insensitive m…

    …ode (except if we encounter the same lowering).
    
    In particular, the order of "opam list" becomes natural.
    tuong committed Jul 17, 2012
  8. [solver optimization] Also consider packages manually entered by the …

    …user as candidates for version upgrading, in case the user has not put some constraints on the version.
    tuong committed Jul 17, 2012
Commits on Jul 16, 2012
  1. [doc] update API

    tuong committed Jul 16, 2012
  2. [solver optimization] New packages returned by the DOSE solver (not p…

    …resent in the request) could have an old version (among available versions).
    
    We introduce an optimization trying to always return the last version of newly computed packages.
    
    Note that this remains an optimization as the solving problem being NP. For instance, the "opam upgrade" performed in #43 just after the "opam install" succeeds but could be unsuccessful in some other cases.
    However, this optimization should be useful in practice as the user targets the last version in general.
    tuong committed Jul 16, 2012
  3. Merge pull request #53 from avsm/fix-opam-env

    "opam config -env" now explicitly exports the variables it prints
    committed Jul 16, 2012
Commits on Jul 14, 2012
  1. "opam config -env" now explicitly exports the variables it prints to …

    …the external environment.
    
    Closes #47
    avsm committed Jul 14, 2012
Commits on Jul 12, 2012
  1. [solver] we modify the return type from [option] to [list].

    Solving algorithm remains the same.
    tuong committed Jul 12, 2012
Commits on Jul 11, 2012
  1. Merge branch 'master' of github.com:OCamlPro/opam

    Conflicts:
    	src/client.ml
    committed Jul 11, 2012
  2. [pin] first version of 'opam pin'

    Usage:
    * opam pin lwt 2.3.1 => fix the version of lwt to 2.3.1
    * opam pin lwt /local/path => use the contents of the local path to compile lwt, instead of downloading the archive
    * opam pin lwt none => remove the version pinning for lwt
    committed Jul 11, 2012
  3. [install/upgrade] fix the restoration of old configuration

    Suppose that "o.3" is installed and it exists a binary named "o" in $opam/bin .
    When the solver proposes to change from "o.3" to "o.2", the binary "o" was wrongly erased and not restored.
    
    Note that "o.2" could also install a binary "o". Here, the difficulty is to restore back the correct binary "o" in $opam/bin that were installed before the [proceed_tochange] execution. Because [proceed_tochange] performs some side effects modifications on variable with [File.Env], one solution is to call it again with a recursive call.
    tuong committed Jul 11, 2012
  4. [run.ml/run_process] fix the exit of [run_process] in case of error s…

    …o that :
    
    - [command] continues the computation (as well as [commands])
    - [read_command_output] stops the execution
    tuong committed Jul 11, 2012
Commits on Jul 10, 2012
  1. [opam install] warning if at least one package contains dependencies …

    …to some unknown packages
    
    Note that, in this case, the solver returns 'No solution has been found' everytime without failing.
    tuong committed Jul 10, 2012
Commits on Jul 9, 2012
  1. Remove tempory files to not saturate /tmp

    We continue 3a0af3c . In particular, "/tmp/opam-%s.%d-%d" are removed as soon as possible
    tuong committed Jul 9, 2012
  2. Fix the locking of operations

    The previous type of [with_flock] could return a higher order value as ['b], leading to some not protected situations.
    tuong committed Jul 9, 2012
  3. Add install instructions

    committed Jul 9, 2012
Commits on Jul 7, 2012
  1. Build ocaml in ~/.opam/<alias>/build/ocaml

    this is better than .../build/_
    committed Jul 7, 2012
  2. [switch] better error message when switching to a compiler descriptio…

    …n which does not exists
    committed Jul 7, 2012
  3. Fix README

    committed Jul 7, 2012
Commits on Jul 6, 2012