aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-06-05 08:03:31 +0000
committerFrancois Pons <fpons@mandriva.com>2002-06-05 08:03:31 +0000
commitb9ffa68234ad52a371edd9704fdcd51d0948b886 (patch)
tree1fb401563730092a65a187d20b94e16b5264e3b8 /URPM.xs
parent076d8e030753efcf4029e0eb0b13fb0dc3db633a (diff)
downloadperl-URPM-b9ffa68234ad52a371edd9704fdcd51d0948b886.tar
perl-URPM-b9ffa68234ad52a371edd9704fdcd51d0948b886.tar.gz
perl-URPM-b9ffa68234ad52a371edd9704fdcd51d0948b886.tar.bz2
perl-URPM-b9ffa68234ad52a371edd9704fdcd51d0948b886.tar.xz
perl-URPM-b9ffa68234ad52a371edd9704fdcd51d0948b886.zip
log on rpmdb open/close.
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs3
1 files changed, 3 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index eb60871..f0a6654 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1187,6 +1187,7 @@ Db_open(prefix="/")
old_cb = rpmErrorSetCallback(callback_empty);
rpmSetVerbosity(RPMMESS_FATALERROR);
RETVAL = rpmdbOpen(prefix, &db, O_RDONLY, 0644) == 0 ? db : NULL;
+ fprintf(stderr, "opening read only rpm db %p\n", db);
rpmErrorSetCallback(old_cb);
rpmSetVerbosity(RPMMESS_NORMAL);
OUTPUT:
@@ -1203,6 +1204,7 @@ Db_open_rw(prefix="/")
old_cb = rpmErrorSetCallback(callback_empty);
rpmSetVerbosity(RPMMESS_FATALERROR);
RETVAL = rpmdbOpen(prefix, &db, O_RDWR | O_CREAT, 0644) == 0 ? db : NULL;
+ fprintf(stderr, "opening read-write rpm db %p\n", db);
rpmErrorSetCallback(old_cb);
rpmSetVerbosity(RPMMESS_NORMAL);
OUTPUT:
@@ -1212,6 +1214,7 @@ void
Db_DESTROY(db)
URPM::DB db
CODE:
+ fprintf(stderr, "closing rpm db %p\n", db);
rpmdbClose(db);
int