On Mon, Apr 29, 2013 at 03:22:06PM +0200, Olaf Hering wrote:
On Thu, Apr 11, Olaf Hering wrote:
+ -m \"stream/install-summary/to-install/solvable[%@type='package']\" \ + -c \"string(%@name)\" -n
This is supposed to be "[@type='package']" and "string(@name)". Some of the ocaml printf docs made me believe that "%@" is the way to print a single "@". Now I see this part was changed to "%%@", which puts an extra % into the output string.
Is the @ sign a special char in ocaml printf?
@ on its own is not special. %@ (as in the original patch) broke older OCaml. In newer OCaml it is silently converted to @ which is probably a bug in OCaml. The breakage in old OCaml was why I replaced it with %%@. I have pushed this: https://github.com/libguestfs/supermin/commit/3329297abe2e7e055337583b2221fc... Thanks, Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org