From 67b9d26301800bfc954a07302820f1dba045e76a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Mon, 4 Jul 2011 15:21:01 +0000 Subject: get chroot path for DB_CONFIG workaround --- URPM.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.1