Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] Fixing 'darcs fetch' and 'darcs apply' consistency

  • Loading branch information...
commit 34852c88003cd306074c1045c39a795a84c30c17 1 parent 7662acd
@venator authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/repositories/opamDarcs.ml
View
5 src/repositories/opamDarcs.ml
@@ -29,7 +29,10 @@ let darcs_fetch local_path remote_address =
let darcs_merge local_path =
OpamFilename.in_dir local_path (fun () ->
- OpamSystem.command [ "darcs" ; "apply"; "opam_update.bundle" ]
+ let patches_bundle = OpamFilename.of_string "opam_update.bundle" in
+ if OpamFilename.exists patches_bundle then
+ OpamSystem.command [ "darcs" ; "apply"; "opam_update.bundle" ];
+ OpamFilename.remove patches_bundle
)
(* Look for file pathes {packages,compilers}/* in a set of XML lines. *)

0 comments on commit 34852c8

Please sign in to comment.
Something went wrong with that request. Please try again.