Skip to content

Commit

Permalink
Merge pull request #3136 from OCamlPro/beta6
Browse files Browse the repository at this point in the history
Bump to beta6
  • Loading branch information
AltGr authored Dec 13, 2017
2 parents e7743f8 + dc44f50 commit c6b1044
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 35 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ Changes prefixed with "(*)" are potentially breaking to scripts or existing
repositories (changes that are automatically handled by the format upgrade tools
are not marked).

2.0.0~beta6
* Small UI fixes
* Fixed a rare case of looping while processing actions

2.0.0~beta5
* Added timeout support to the solvers (default 1min)
* Added `--unlock-base` to allow changing the compiler of a switch
Expand Down
18 changes: 9 additions & 9 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for opam 2.0.0~beta5.
# Generated by GNU Autoconf 2.69 for opam 2.0.0~beta6.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Expand Down Expand Up @@ -578,8 +578,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='opam'
PACKAGE_TARNAME='opam'
PACKAGE_VERSION='2.0.0~beta5'
PACKAGE_STRING='opam 2.0.0~beta5'
PACKAGE_VERSION='2.0.0~beta6'
PACKAGE_STRING='opam 2.0.0~beta6'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

Expand Down Expand Up @@ -1243,7 +1243,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures opam 2.0.0~beta5 to adapt to many kinds of systems.
\`configure' configures opam 2.0.0~beta6 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
Expand Down Expand Up @@ -1305,7 +1305,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of opam 2.0.0~beta5:";;
short | recursive ) echo "Configuration of opam 2.0.0~beta6:";;
esac
cat <<\_ACEOF
Expand Down Expand Up @@ -1406,7 +1406,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
opam configure 2.0.0~beta5
opam configure 2.0.0~beta6
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
Expand Down Expand Up @@ -1463,7 +1463,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by opam $as_me 2.0.0~beta5, which was
It was created by opam $as_me 2.0.0~beta6, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
Expand Down Expand Up @@ -4977,7 +4977,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by opam $as_me 2.0.0~beta5, which was
This file was extended by opam $as_me 2.0.0~beta6, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -5030,7 +5030,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
opam config.status 2.0.0~beta5
opam config.status 2.0.0~beta6
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT(opam,2.0.0~beta5)
AC_INIT(opam,2.0.0~beta6)
AC_COPYRIGHT(Copyright 2012-2017 OcamlPro SAS)

AC_CONFIG_MACRO_DIR([m4])
Expand Down
6 changes: 3 additions & 3 deletions opam-client.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "1.2"
version: "2.0.0~beta5"
version: "2.0.0~beta6"
maintainer: "[email protected]"
authors: [
"Thomas Gazagnaire <[email protected]>"
Expand All @@ -19,8 +19,8 @@ build: [
[make "%{name}%.install"]
]
depends: [
"opam-state" {= "2.0.0~beta5"}
"opam-solver" {= "2.0.0~beta5"}
"opam-state" {= "2.0.0~beta6"}
"opam-solver" {= "2.0.0~beta6"}
"cmdliner" {>= "0.9.8"}
"jbuilder" {build & >= "1.0+beta12"}
]
Expand Down
2 changes: 1 addition & 1 deletion opam-core.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "1.2"
version: "2.0.0~beta5"
version: "2.0.0~beta6"
maintainer: "[email protected]"
authors: [
"Thomas Gazagnaire <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions opam-devel.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "1.2"
version: "2.0.0~beta5"
version: "2.0.0~beta6"
maintainer: "[email protected]"
authors: [
"Thomas Gazagnaire <[email protected]>"
Expand All @@ -20,7 +20,7 @@ build: [
]
build-test: [make "tests"]
depends: [
"opam-client" {= "2.0.0~beta5"}
"opam-client" {= "2.0.0~beta6"}
"cmdliner" {>= "0.9.8"}
"jbuilder" {build & >= "1.0+beta12"}
]
Expand Down
4 changes: 2 additions & 2 deletions opam-format.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "1.2"
version: "2.0.0~beta5"
version: "2.0.0~beta6"
maintainer: "[email protected]"
authors: [
"Thomas Gazagnaire <[email protected]>"
Expand All @@ -19,7 +19,7 @@ build: [
[make "%{name}%.install"]
]
depends: [
"opam-core" {= "2.0.0~beta5"}
"opam-core" {= "2.0.0~beta6"}
"opam-file-format" {>= "2.0.0~beta5"}
"jbuilder" {build & >= "1.0+beta12"}
]
Expand Down
4 changes: 2 additions & 2 deletions opam-installer.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "1.2"
version: "2.0.0~beta5"
version: "2.0.0~beta6"
maintainer: "[email protected]"
authors: [
"Thomas Gazagnaire <[email protected]>"
Expand All @@ -21,7 +21,7 @@ build: [
[make "%{name}%.install"]
]
depends: [
"opam-format" {= "2.0.0~beta5"}
"opam-format" {= "2.0.0~beta6"}
"cmdliner" {>= "0.9.8"}
"jbuilder" {build & >= "1.0+beta12"}
]
Expand Down
4 changes: 2 additions & 2 deletions opam-repository.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "1.2"
version: "2.0.0~beta5"
version: "2.0.0~beta6"
maintainer: "[email protected]"
authors: [
"Thomas Gazagnaire <[email protected]>"
Expand All @@ -19,7 +19,7 @@ build: [
[make "%{name}%.install"]
]
depends: [
"opam-format" {= "2.0.0~beta5"}
"opam-format" {= "2.0.0~beta6"}
"jbuilder" {build & >= "1.0+beta12"}
]
available: ocaml-version >= "4.02.3"
4 changes: 2 additions & 2 deletions opam-solver.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "1.2"
version: "2.0.0~beta5"
version: "2.0.0~beta6"
maintainer: "[email protected]"
authors: [
"Thomas Gazagnaire <[email protected]>"
Expand All @@ -19,7 +19,7 @@ build: [
[make "%{name}%.install"]
]
depends: [
"opam-format" {= "2.0.0~beta5"}
"opam-format" {= "2.0.0~beta6"}
"mccs" {>= "1.1+4"}
"dose3" {>= "5"}
"cudf" {>= "0.7"}
Expand Down
4 changes: 2 additions & 2 deletions opam-state.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "1.2"
version: "2.0.0~beta5"
version: "2.0.0~beta6"
maintainer: "[email protected]"
authors: [
"Thomas Gazagnaire <[email protected]>"
Expand All @@ -19,7 +19,7 @@ build: [
[make "%{name}%.install"]
]
depends: [
"opam-repository" {= "2.0.0~beta5"}
"opam-repository" {= "2.0.0~beta6"}
"jbuilder" {build & >= "1.0+beta12"}
]
available: ocaml-version >= "4.02.3"
18 changes: 9 additions & 9 deletions src/core/opamStd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -799,20 +799,20 @@ module OpamFormat = struct
let visual_length_substring s ofs len =
let rec aux acc i =
if i >= len then acc
else match s.[i] with
| '\xc2'..'\xdf' -> aux (acc + (min 1 (len - i))) (i + 2)
| '\xe0'..'\xef' -> aux (acc + (min 2 (len - i))) (i + 3)
| '\xf0'..'\xf4' -> aux (acc + (min 3 (len - i))) (i + 4)
else match s.[ofs + i] with
| '\xc2'..'\xdf' -> aux (acc - min 1 (len - i)) (i + 2)
| '\xe0'..'\xef' -> aux (acc - min 2 (len - i)) (i + 3)
| '\xf0'..'\xf4' -> aux (acc - min 3 (len - i)) (i + 4)
| '\027' ->
(try
let j = String.index_from s (i+1) 'm' in
if j > ofs + len then acc + len - i else
aux (acc + j - i + 1) (j + 1)
let j = String.index_from s (ofs+i+1) 'm' - ofs in
if j > len then acc - (len - i) else
aux (acc - (j - i + 1)) (j + 1)
with Not_found | Invalid_argument _ ->
acc + len - i)
acc - (len - i))
| _ -> aux acc (i + 1)
in
len - aux 0 ofs
aux len 0

let visual_length s = visual_length_substring s 0 (String.length s)

Expand Down

0 comments on commit c6b1044

Please sign in to comment.