git://project.juiblex.co.uk
/
razor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b8ebb69
)
Don't reset yum parser state when finishing parsing rpm:entry.
author
Kristian Høgsberg
<krh@redhat.com>
Sun, 4 Nov 2007 04:58:25 +0000 (
00:58
-0400)
committer
Kristian Høgsberg
<krh@redhat.com>
Sun, 4 Nov 2007 04:58:25 +0000 (
00:58
-0400)
This fixes the bug where each package on got on of each property type.
import.c
patch
|
blob
|
history
diff --git
a/import.c
b/import.c
index
f291ef0
..
399926e
100644
(file)
--- a/
import.c
+++ b/
import.c
@@
-264,7
+264,13
@@
yum_end_element (void *data, const char *name)
{
struct yum_context *ctx = data;
- ctx->state = YUM_STATE_BEGIN;
+ switch (ctx->state) {
+ case YUM_STATE_PACKAGE_NAME:
+ case YUM_STATE_FILE:
+ ctx->state = YUM_STATE_BEGIN;
+ break;
+ }
+
if (strcmp(name, "package") == 0)
razor_importer_finish_package(ctx->importer);
else if (strcmp(name, "file") == 0)