diff options
author | James Bowes <jbowes@redhat.com> | 2008-06-23 11:28:00 -0400 |
---|---|---|
committer | James Bowes <jbowes@redhat.com> | 2008-06-23 14:04:47 -0400 |
commit | 1c08e4250944048d5eedcb8eb5553aaa3e232ec6 (patch) | |
tree | 1d8fc67ab18b41f56de63ccccfd14c0666d256b0 /src/import-rpmdb.c | |
parent | 13de66077f3f4c67705589bf0c36c25d9b9e10e1 (diff) |
Display progress when importing rpms
Diffstat (limited to 'src/import-rpmdb.c')
-rw-r--r-- | src/import-rpmdb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/import-rpmdb.c b/src/import-rpmdb.c index 3b4851c..cbef6a8 100644 --- a/src/import-rpmdb.c +++ b/src/import-rpmdb.c @@ -90,6 +90,7 @@ razor_set_create_from_rpmdb(void) union rpm_entry basenames, dirnames, dirindexes; char filename[PATH_MAX], evr[128], buf[16]; rpmdb db; + int imported_count = 0; rpmReadConfigFiles(NULL, NULL); @@ -162,9 +163,13 @@ razor_set_create_from_rpmdb(void) } razor_importer_finish_package(importer); + + printf("\rimporting %d", ++imported_count); + fflush(stdout); } rpmdbClose(db); + printf("\nsaving\n"); return razor_importer_finish(importer); } |