diff options
-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"); |