]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- do not consider dbenv. seems to solve problem in LP#347749
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 6 Jun 2009 14:58:29 +0000 (14:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-chroot-hack.patch -> 1.1.2.1.2.1

rpm-chroot-hack.patch

index e5b7aca5c65f32844c05e7ea6d7565f3dc805f0f..0919e8a96a3a254b56b122c7e67544b116e02b07 100644 (file)
@@ -1,6 +1,5 @@
-diff -urN rpm-4.4.9.org/rpmdb/db3.c rpm-4.4.9/rpmdb/db3.c
---- rpm-4.4.9.org/rpmdb/db3.c  2007-04-25 03:48:42.000000000 +0200
-+++ rpm-4.4.9/rpmdb/db3.c      2007-11-12 20:01:29.761434045 +0100
+--- rpm-4.5/rpmdb/db3.c~       2009-06-06 17:54:26.000000000 +0300
++++ rpm-4.5/rpmdb/db3.c        2009-06-06 17:55:36.050580710 +0300
 @@ -1329,6 +1329,8 @@
        } else {
  assert(rpmdb && rpmdb->db_dbenv);
@@ -10,12 +9,18 @@ diff -urN rpm-4.4.9.org/rpmdb/db3.c rpm-4.4.9/rpmdb/db3.c
            rpmdb->db_opens++;
        }
        /*@=mods@*/
-@@ -1496,7 +1498,7 @@
+@@ -1511,13 +1511,7 @@
                if (dbfile)
                    t = stpcpy( stpcpy( t, "/"), dbfile);
  /*@=boundswrite@*/
 -#ifdef        HACK    /* XXX necessary to support dbsubfile */
-+#if 1
-               dbpath = (!dbi->dbi_use_dbenv && !dbi->dbi_temporary)
-                       ? dbfullpath : dbfile;
- #else
+-              dbpath = (!dbi->dbi_use_dbenv && !dbi->dbi_temporary)
+-                      ? dbfullpath : dbfile;
+-#else
+-              dbpath = (!dbi->dbi_temporary)
+-                      ? dbfullpath : dbfile;
+-#endif
++              dbpath = (!dbi->dbi_temporary) ? dbfullpath : dbfile;
+ #if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)
+               rc = (db->open)(db, txnid, dbpath, dbsubfile,
This page took 0.031187 seconds and 4 git commands to generate.