[Libguestfs] [PATCH 2/2] builder: add "[ignored]" to parsing errors for .conf files
Pino Toscano
ptoscano at redhat.com
Tue Apr 22 15:41:44 UTC 2014
Parsing sources .conf files is not a fatal error (that file would just
be ignored), so explicitly state that such parsing errors are ignored.
This should address the last bit in RHBZ#1077817.
---
builder/sources.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builder/sources.ml b/builder/sources.ml
index e7644a2..be1c27d 100644
--- a/builder/sources.ml
+++ b/builder/sources.ml
@@ -35,7 +35,7 @@ let parse_conf ~prog ~debug file =
if debug then (
eprintf (f_"%s: trying to read %s\n") prog file;
);
- let sections = Ini_reader.read_ini ~prog file in
+ let sections = Ini_reader.read_ini ~prog ~error_suffix:"[ignored]" file in
let sources = List.fold_right (
fun (n, fields) acc ->
--
1.9.0
More information about the Libguestfs
mailing list