aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");