From 27be353376ced722d0a8d25078a7361d12fffae3 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Tue, 18 Jul 2006 13:45:08 +0000 Subject: [PATCH] dependeciesParsed fixed to parse URIs also in QSTRINGs (because of alias id qstring = qstring) --- .../components/grafite_parser/dependenciesParser.ml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helm/software/components/grafite_parser/dependenciesParser.ml b/helm/software/components/grafite_parser/dependenciesParser.ml index e07d4ec03..5e80d8b4c 100644 --- a/helm/software/components/grafite_parser/dependenciesParser.ml +++ b/helm/software/components/grafite_parser/dependenciesParser.ml @@ -45,6 +45,12 @@ let parse_dependencies lexbuf = let rec parse acc = try (parser + | [< '("QSTRING", s) >] -> + (* because of alias id qstring = qstring :-( *) + (try + parse (UriDep (UriManager.uri_of_string s) :: acc) + with + UriManager.IllFormedUri _ -> parse acc) | [< '("URI", u) >] -> parse (UriDep (UriManager.uri_of_string u) :: acc) | [< '("IDENT", "include"); '("QSTRING", fname) >] -> -- 2.39.2