diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-07-04 15:21:01 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-07-04 15:21:01 +0000 |
commit | 67b9d26301800bfc954a07302820f1dba045e76a (patch) | |
tree | 0e19be0206fee0d18c4dc2eaed62cea5d7e8133d | |
parent | 2730270b220a90e231448f8f6c7de5956fb43c01 (diff) | |
download | perl-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.xs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |