import.c
changeset 68 0587f1759f09
parent 67 cfe57117efee
child 70 e94d16f789e5
     1.1 --- a/import.c	Sat Nov 03 17:15:29 2007 -0400
     1.2 +++ b/import.c	Sun Nov 04 00:58:25 2007 -0400
     1.3 @@ -264,7 +264,13 @@
     1.4  {
     1.5  	struct yum_context *ctx = data;
     1.6  
     1.7 -	ctx->state = YUM_STATE_BEGIN;
     1.8 +	switch (ctx->state) {
     1.9 +	case YUM_STATE_PACKAGE_NAME:
    1.10 +	case YUM_STATE_FILE:
    1.11 +		ctx->state = YUM_STATE_BEGIN;
    1.12 +		break;
    1.13 +	}
    1.14 +
    1.15  	if (strcmp(name, "package") == 0)
    1.16  		razor_importer_finish_package(ctx->importer);
    1.17  	else if (strcmp(name, "file") == 0)