import.c
changeset 61 b0e1638a9f96
parent 48 458b03594baf
child 62 3e42af5305ac
     1.1 --- a/import.c	Sun Oct 21 21:57:22 2007 -0400
     1.2 +++ b/import.c	Thu Oct 25 13:21:18 2007 -0400
     1.3 @@ -318,8 +318,9 @@
     1.4  		headerGetEntry(h, RPMTAG_NAME, &type, &name.p, &count);
     1.5  		headerGetEntry(h, RPMTAG_VERSION, &type, &version.p, &count);
     1.6  		headerGetEntry(h, RPMTAG_RELEASE, &type, &release.p, &count);
     1.7 -		razor_importer_begin_package(importer,
     1.8 -					     name.string, version.string);
     1.9 +		snprintf(filename, sizeof filename, "%s-%s",
    1.10 +			 version.string, release.string);
    1.11 +		razor_importer_begin_package(importer, name.string, filename);
    1.12  
    1.13  		headerGetEntry(h, RPMTAG_REQUIRENAME, &type,
    1.14  			       &property_names.p, &count);