Permalink
Switch branches/tags
Commits on Jul 21, 2012
  1. Bump version number to 0.3.1

    samoht committed Jul 21, 2012
  2. Fix installation issue, regression introduced by 5b5fab7. The install…

    samoht committed Jul 21, 2012
    …ed packages which were not modified by the install were unfortunately removed ...
Commits on Jul 20, 2012
Commits on Jul 19, 2012
  1. [doc] update API

    tuong committed Jul 19, 2012
  2. [switch heuristic] try to preserve the installed packages

    tuong committed Jul 19, 2012
    During "opam switch -clone" from an OCaml version V_src to an OCaml version V_dst, the previous heuristic ignores packages present in both V_src and V_dst (mentionned in V_dst.comp).
    Now, we take by default packages present in V_dst.
    
    For instance, follow these steps :
    
    opam init (* initialize with the version V_src="system". Remark that the option '-no-base-packages' is absent *)
    opam switch system -clone (* we switch to V_dst="system" *)
    
    Instead of removing every "base-..." packages, the current heuristic keeps now constraints taken from V_dst.comp .
  3. Fix #56

    samoht committed Jul 19, 2012
    `opam switch system` was broken
Commits on Jul 18, 2012
Commits on Jul 17, 2012
  1. Bump version number

    samoht committed Jul 17, 2012
  2. Update CHANGES

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

    samoht committed Jul 17, 2012
    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.
  4. Add stublibs and toplevel variables in the configuration package, so …

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

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

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

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

    tuong committed Jul 17, 2012
    …user as candidates for version upgrading, in case the user has not put some constraints on the version.
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…

    tuong committed Jul 16, 2012
    …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.
  3. Merge pull request #53 from avsm/fix-opam-env

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

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

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

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

    samoht committed Jul 11, 2012
    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
  3. [install/upgrade] fix the restoration of old configuration

    tuong committed Jul 11, 2012
    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.
  4. [run.ml/run_process] fix the exit of [run_process] in case of error s…

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

    tuong committed Jul 10, 2012
    …to some unknown packages
    
    Note that, in this case, the solver returns 'No solution has been found' everytime without failing.