From e77fcc4300b4a9a67ab440c68899fd574d763081 Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Sat, 22 Dec 2007 08:17:02 +0000 Subject: [PATCH] prepare to pass rootdir for reading rpmdb from other directory (unfinished) --- tools/repo_rpmdb.c | 2 +- tools/repo_rpmdb.h | 2 +- tools/rpmdb2solv.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/repo_rpmdb.c b/tools/repo_rpmdb.c index 18254ef..ab0edfb 100644 --- a/tools/repo_rpmdb.c +++ b/tools/repo_rpmdb.c @@ -511,7 +511,7 @@ rpm2solv(Pool *pool, Repo *repo, Solvable *s, RpmHead *rpmhead) */ void -repo_add_rpmdb(Repo *repo, Repo *ref) +repo_add_rpmdb(Repo *repo, Repo *ref, const char *rootdir) { Pool *pool = repo->pool; unsigned char buf[16]; diff --git a/tools/repo_rpmdb.h b/tools/repo_rpmdb.h index 4adb385..1ce138d 100644 --- a/tools/repo_rpmdb.h +++ b/tools/repo_rpmdb.h @@ -5,4 +5,4 @@ * for further information */ -extern void repo_add_rpmdb(Repo *repo, Repo *ref); +extern void repo_add_rpmdb(Repo *repo, Repo *ref, const char *rootdir); diff --git a/tools/rpmdb2solv.c b/tools/rpmdb2solv.c index abdfc00..8050c73 100644 --- a/tools/rpmdb2solv.c +++ b/tools/rpmdb2solv.c @@ -44,7 +44,7 @@ main(int argc, char **argv) } repo = repo_create(pool, "installed"); - repo_add_rpmdb(repo, ref); + repo_add_rpmdb(repo, ref, "/"); if (ref) { if (ref->pool != pool) -- 2.7.4