To be able to accept a set of patches simply cat'ed behind each other
authorMichael Matz <matz@suse.de>
Mon, 15 Oct 2007 02:57:27 +0000 (02:57 +0000)
committerMichael Matz <matz@suse.de>
Mon, 15 Oct 2007 02:57:27 +0000 (02:57 +0000)
we need to accept a collector tag.  I chose '<patches>', so you can
parse multiple patches by:

( echo '<patches>'; cat patch-*.xml; echo '</patches>' )
  | grep -v '\?xml'
  | patchxml2solv

tools/source_patchxml.c

index 0b22299..1f62c56 100644 (file)
@@ -52,6 +52,7 @@ struct stateswitch {
 static struct stateswitch stateswitches[] = {
   { STATE_START,       "patch",           STATE_PATCH, 0 },
   { STATE_START,       "package",         STATE_ATOM, 0 },
+  { STATE_START,       "patches",         STATE_START, 0},
   { STATE_PATCH,       "yum:name",        STATE_NAME, 1 },
   { STATE_PATCH,       "yum:arch",        STATE_ARCH, 1 },
   { STATE_PATCH,       "yum:version",     STATE_VERSION, 0 },