RPM Community Forums

Mailing List Message of <rpm-cvs>

[CVS] RPM: rpm/lib/ depends.c

From: Jeff Johnson <jbj@rpm5.org>
Date: Thu 25 Oct 2007 - 17:26:03 CEST
Message-Id: <20071025152603.CACEA34845B@rpm5.org>
  RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Jeff Johnson
  Root:   /v/rpm/cvs                       Email:  jbj@rpm5.org
  Module: rpm                              Date:   25-Oct-2007 17:26:03
  Branch: HEAD                             Handle: 2007102516260300

  Modified files:
    rpm/lib                 depends.c

  Log:
    - use rpmtsDBMode wrapper.

  Summary:
    Revision    Changes     Path
    1.355       +4  -4      rpm/lib/depends.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/lib/depends.c
  ============================================================================
  $ cvs diff -u -r1.354 -r1.355 depends.c
  --- rpm/lib/depends.c	19 Oct 2007 00:36:44 -0000	1.354
  +++ rpm/lib/depends.c	25 Oct 2007 15:26:03 -0000	1.355
  @@ -399,8 +399,8 @@
   	goto exit;
   
       /* Do lazy (readonly?) open of rpm database. */
  -    if (rpmtsGetRdb(ts) == NULL && ts->dbmode != -1) {
  -	if ((ec = rpmtsOpenDB(ts, ts->dbmode)) != 0)
  +    if (rpmtsGetRdb(ts) == NULL && rpmtsDBMode(ts) != -1) {
  +	if ((ec = rpmtsOpenDB(ts, rpmtsDBMode(ts)) != 0)
   	    goto exit;
       }
   
  @@ -2304,8 +2304,8 @@
       (void) rpmswEnter(rpmtsOp(ts, RPMTS_OP_CHECK), 0);
   
       /* Do lazy, readonly, open of rpm database. */
  -    if (rpmtsGetRdb(ts) == NULL && ts->dbmode != -1) {
  -	if ((rc = rpmtsOpenDB(ts, ts->dbmode)) != 0)
  +    if (rpmtsGetRdb(ts) == NULL && rpmtsDBMode(ts) != -1) {
  +	if ((rc = rpmtsOpenDB(ts, rpmtsDBMode(ts))) != 0)
   	    goto exit;
   	closeatexit = 1;
       }
  @@ .
Received on Thu Oct 25 17:26:03 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.