aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2011-07-04 15:18:11 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2011-07-04 15:18:11 +0000
commita602e1f616d11b40b2b99a593cdae4579ab6d6ed (patch)
tree02760da7c3daf4a637012064d336148be9158199
parent636943c5f6fbd70b5ad1f3b1736364cfbc30ae19 (diff)
downloadperl-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.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 0e34dd5..6665acf 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -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");