diff -r cfe57117efee -r 35ca1ba469ec import.c --- a/import.c Sat Nov 03 17:15:29 2007 -0400 +++ b/import.c Sun Nov 04 00:58:57 2007 -0400 @@ -264,7 +264,13 @@ { 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)