diff options
author | Michael Schroeder <mls@suse.de> | 2009-10-14 16:20:49 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2009-10-14 16:20:49 +0200 |
commit | 2054df122dc87daee0a67d4a3c26223b7fc891e6 (patch) | |
tree | 13c4443a55ca4dcad2a58d2a55191966a1b7d77f /ext | |
parent | 2c7f3a88499f548fa962fddf69c9e573f3b18480 (diff) | |
download | libsolv-2054df122dc87daee0a67d4a3c26223b7fc891e6.tar.gz libsolv-2054df122dc87daee0a67d4a3c26223b7fc891e6.tar.bz2 libsolv-2054df122dc87daee0a67d4a3c26223b7fc891e6.zip |
- ignore products element so that repo2solv works
Diffstat (limited to 'ext')
-rw-r--r-- | ext/repo_rpmmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/repo_rpmmd.c b/ext/repo_rpmmd.c index f0b63a4..7b8965b 100644 --- a/ext/repo_rpmmd.c +++ b/ext/repo_rpmmd.c @@ -640,6 +640,8 @@ startElement(void *userData, const char *name, const char **atts) if (pd->state == STATE_START && !strcmp(name, "patterns")) return; + if (pd->state == STATE_START && !strcmp(name, "products")) + return; //if (pd->state == STATE_START && !strcmp(name, "metadata")) // return; if (pd->state == STATE_SOLVABLE && !strcmp(name, "format")) @@ -886,6 +888,8 @@ endElement(void *userData, const char *name) /* ignore patterns & metadata */ if (pd->state == STATE_START && !strcmp(name, "patterns")) return; + if (pd->state == STATE_START && !strcmp(name, "products")) + return; //if (pd->state == STATE_START && !strcmp(name, "metadata")) // return; if (pd->state == STATE_SOLVABLE && !strcmp(name, "format")) |