From e8c83a8daa1beeacfc6d08fedd2112bc38c1b251 Mon Sep 17 00:00:00 2001 From: Andrea Asperti Date: Fri, 22 Dec 2006 10:53:52 +0000 Subject: [PATCH] Add_moo_content modified to avoid repetitions of index command during inclusion. --- helm/software/components/grafite_engine/grafiteTypes.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helm/software/components/grafite_engine/grafiteTypes.ml b/helm/software/components/grafite_engine/grafiteTypes.ml index 6e1c299e4..80efca87a 100644 --- a/helm/software/components/grafite_engine/grafiteTypes.ml +++ b/helm/software/components/grafite_engine/grafiteTypes.ml @@ -124,7 +124,8 @@ let add_moo_content cmds status = (fun cmd acc -> (* prerr_endline ("adding to moo command: " ^ GrafiteAstPp.pp_command cmd); *) match cmd with - | GrafiteAst.Default _ -> + | GrafiteAst.Default _ + | GrafiteAst.Index _ -> if List.mem cmd content then acc else cmd :: acc | _ -> cmd :: acc) -- 2.39.2