diff options
author | Francois Pons <fpons@mandriva.com> | 2002-06-05 08:03:31 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-06-05 08:03:31 +0000 |
commit | b9ffa68234ad52a371edd9704fdcd51d0948b886 (patch) | |
tree | 1fb401563730092a65a187d20b94e16b5264e3b8 /URPM.xs | |
parent | 076d8e030753efcf4029e0eb0b13fb0dc3db633a (diff) | |
download | perl-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.xs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |