RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Ralf S. Engelschall
Root: /v/rpm/cvs Email: rse@rpm5.org
Module: rpm Date: 23-Jul-2007 10:24:09
Branch: HEAD Handle: 2007072309240900
Modified files:
rpm/rpmdb rpmdb.c
Log:
give a little bit more debug information on --rebuilddb -vv so one can
see what is done for moving the new database in place
Summary:
Revision Changes Path
1.140 +8 -2 rpm/rpmdb/rpmdb.c
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/rpmdb/rpmdb.c
============================================================================
$ cvs diff -u -r1.139 -r1.140 rpmdb.c
--- rpm/rpmdb/rpmdb.c 22 Jul 2007 22:10:27 -0000 1.139
+++ rpm/rpmdb/rpmdb.c 23 Jul 2007 08:24:09 -0000 1.140
@@ -3805,6 +3805,8 @@
if (stat(ofilename, nst) < 0)
continue;
+ rpmMessage(RPMMESS_DEBUG, _("moving file from \"%s\"\n"), ofilename);
+ rpmMessage(RPMMESS_DEBUG, _("moving file to \"%s\"\n"), nfilename);
if ((xx = rename(ofilename, nfilename)) != 0) {
rc = 1;
continue;
@@ -3820,12 +3822,16 @@
for (i = 0; i < 16; i++) {
sprintf(ofilename, "%s/%s/__db.%03d", prefix, olddbpath, i);
(void)rpmCleanPath(ofilename);
- if (rpmioFileExists(ofilename))
+ if (rpmioFileExists(ofilename)) {
+ rpmMessage(RPMMESS_DEBUG, _("removing region file \"%s\"\n"), ofilename);
xx = unlink(ofilename);
+ }
sprintf(nfilename, "%s/%s/__db.%03d", prefix, newdbpath, i);
(void)rpmCleanPath(nfilename);
- if (rpmioFileExists(nfilename))
+ if (rpmioFileExists(nfilename)) {
+ rpmMessage(RPMMESS_DEBUG, _("removing region file \"%s\"\n"), nfilename);
xx = unlink(nfilename);
+ }
}
break;
case 2:
@@ .
Received on Mon Jul 23 10:24:09 2007