src/import-rpmdb.c
changeset 278 97c12ddedfb3
parent 259 5b0601d184ed
child 325 73393734833c
     1.1 --- a/src/import-rpmdb.c	Mon Jun 23 09:59:08 2008 -0400
     1.2 +++ b/src/import-rpmdb.c	Mon Jun 23 21:20:16 2008 -0400
     1.3 @@ -90,6 +90,7 @@
     1.4  	union rpm_entry basenames, dirnames, dirindexes;
     1.5  	char filename[PATH_MAX], evr[128], buf[16];
     1.6  	rpmdb db;
     1.7 +	int imported_count = 0;
     1.8  
     1.9  	rpmReadConfigFiles(NULL, NULL);
    1.10  
    1.11 @@ -162,9 +163,13 @@
    1.12  		}
    1.13  
    1.14  		razor_importer_finish_package(importer);
    1.15 +
    1.16 +		printf("\rimporting %d", ++imported_count);
    1.17 +		fflush(stdout);
    1.18  	}
    1.19  
    1.20  	rpmdbClose(db);
    1.21  
    1.22 +	printf("\nsaving\n");
    1.23  	return razor_importer_finish(importer);
    1.24  }