aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2011-07-04 15:21:01 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2011-07-04 15:21:01 +0000
commit67b9d26301800bfc954a07302820f1dba045e76a (patch)
tree0e19be0206fee0d18c4dc2eaed62cea5d7e8133d
parent2730270b220a90e231448f8f6c7de5956fb43c01 (diff)
downloadperl-URPM-67b9d26301800bfc954a07302820f1dba045e76a.tar
perl-URPM-67b9d26301800bfc954a07302820f1dba045e76a.tar.gz
perl-URPM-67b9d26301800bfc954a07302820f1dba045e76a.tar.bz2
perl-URPM-67b9d26301800bfc954a07302820f1dba045e76a.tar.xz
perl-URPM-67b9d26301800bfc954a07302820f1dba045e76a.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 2b0bd46..3423f52 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3350,7 +3350,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) {
- const char *fn = rpmGetPath("%{_dbpath}", "/DB_CONFIG", NULL);
+ const char *fn = rpmGetPath(rpmtsRootDir(trans->ts), "%{_dbpath}", "/DB_CONFIG", NULL);
struct stat st;
if (stat(fn, &st)) {
FD_t fd = Fopen(fn, "w");