[Pkg-libvirt-commits] [libguestfs] 02/165: builder: add "[ignored]" to parsing errors for .conf files

Hilko Bengen bengen at moszumanska.debian.org
Sat Aug 30 08:24:00 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 4f5dc4afdc56483a29044d9d5498b5c764bcbc6a
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Tue Apr 22 17:58:27 2014 +0200

    builder: add "[ignored]" to parsing errors for .conf files
    
    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 ->

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list