Re: [Libguestfs] [PATCH v11 08/10] daemon: Implement inspection of Linux and other Unix-like operating systems.

2017-08-08 Thread Richard W.M. Jones
On Tue, Aug 08, 2017 at 06:57:46PM +0200, Pino Toscano wrote: > TBH, since both parse_os_release and parse_lsb_release are rewritten > in OCaml, I'd try a better approach for them: add an helper function > that read such kind of files (ignoring empty lines, and those starting > with '#'), split

Re: [Libguestfs] [PATCH v11 08/10] daemon: Implement inspection of Linux and other Unix-like operating systems.

2017-08-08 Thread Pino Toscano
On Monday, 31 July 2017 17:40:57 CEST Richard W.M. Jones wrote: > +(* Parse a os-release file. > + * > + * Only few fields are parsed, falling back to the usual detection if we > + * cannot read all of them. > + * > + * For the format of os-release, see also: > + *