diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-07-04 15:18:11 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-07-04 15:18:11 +0000 |
commit | a602e1f616d11b40b2b99a593cdae4579ab6d6ed (patch) | |
tree | 02760da7c3daf4a637012064d336148be9158199 | |
parent | 636943c5f6fbd70b5ad1f3b1736364cfbc30ae19 (diff) | |
download | perl-URPM-a602e1f616d11b40b2b99a593cdae4579ab6d6ed.tar perl-URPM-a602e1f616d11b40b2b99a593cdae4579ab6d6ed.tar.gz perl-URPM-a602e1f616d11b40b2b99a593cdae4579ab6d6ed.tar.bz2 perl-URPM-a602e1f616d11b40b2b99a593cdae4579ab6d6ed.tar.xz perl-URPM-a602e1f616d11b40b2b99a593cdae4579ab6d6ed.zip |
get chroot path for DB_CONFIG workaround
-rw-r--r-- | URPM.xs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3340,7 +3340,7 @@ Trans_add(trans, pkg, ...) if (!strcmp(get_name(pkg->h, RPMTAG_NAME), "rpm")) { const char *version = get_name(pkg->h, RPMTAG_VERSION); if (rpmvercmp(version, "5.3") >= 0) { - char *fn = rpmGetPath("%{_dbpath}", "/DB_CONFIG", NULL); + char *fn = rpmGetPath(rpmtsRootDir(trans->ts), "%{_dbpath}", "/DB_CONFIG", NULL); struct stat st; if (stat(fn, &st)) { FD_t fd = Fopen(fn, "w"); |