diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-07-04 15:18:02 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-07-04 15:18:02 +0000 |
commit | 896bd68b20ed3e370765103f1e381441310d0035 (patch) | |
tree | d5a47b33243307c266864b0061961384d6dfdf9d | |
parent | 87bd0ddadc671760b5192848f44474c71ff9f2cd (diff) | |
download | perl-URPM-topic/3.37-distepoch.tar perl-URPM-topic/3.37-distepoch.tar.gz perl-URPM-topic/3.37-distepoch.tar.bz2 perl-URPM-topic/3.37-distepoch.tar.xz perl-URPM-topic/3.37-distepoch.zip |
get chroot path for DB_CONFIG workaroundtopic/3.37-distepoch
-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"); |