Skip to content

Commit

Permalink
Adapt src_ext/update-sources.sh for ocaml#3368
Browse files Browse the repository at this point in the history
Output from `opam show` now includes quotes.
  • Loading branch information
dra27 authored and rjbou committed Oct 16, 2018
1 parent a699b9e commit 359b1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src_ext/update-sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ while read name prefix version url; do
if [[ $package = "findlib" ]] ; then package=ocamlfind ; fi
latest=$(opam show $package -f all-versions)
latest=${latest##* }
package_url=$(opam show $package.$latest -f url.src:)
package_url=$(opam show $package.$latest -f url.src: | sed -e 's/"//g')
md5=$(sed -n -e "s/MD5$prefix$name *= *\(.*\)/\1/p" Makefile.sources)
package_md5=$(opam show $package.$latest -f url.checksum: | sed -e "s/.*md5=\([a-fA-F0-9]\{32\}\).*/\1/")
if [[ $package_url = $url ]] ; then
Expand Down

0 comments on commit 359b1d9

Please sign in to comment.