Fix uservisible parsing for rpmmd patterns
authorKlaus Kämpf <kkaempf@suse.de>
Fri, 19 Feb 2010 12:34:15 +0000 (13:34 +0100)
committerKlaus Kämpf <kkaempf@suse.de>
Fri, 19 Feb 2010 12:34:15 +0000 (13:34 +0100)
And create testcase for it.

ext/repo_rpmmd.c

index 7b8965b..f6e9604 100644 (file)
@@ -777,6 +777,9 @@ startElement(void *userData, const char *name, const char **atts)
     case STATE_DESCRIPTION:
       pd->tmplang = find_attr("lang", atts);
       break;
+    case STATE_USERVISIBLE:
+      repodata_set_void(pd->data, handle, SOLVABLE_ISVISIBLE );
+      break;
     case STATE_LOCATION:
       str = find_attr("href", atts);
       if (str)