summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-14 09:28:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-14 09:33:20 +0100
commiteb17fdc1461953382360635480f12357eac4dc43 (patch)
tree4e62e037d1e224f70e64c7c7c773b06463dc97a2
parentb5028cc84ad7c40c51cadbdf7fdc892cde4462cb (diff)
downloadopenembedded-core-eb17fdc1461953382360635480f12357eac4dc43.tar.gz
openembedded-core-eb17fdc1461953382360635480f12357eac4dc43.tar.bz2
openembedded-core-eb17fdc1461953382360635480f12357eac4dc43.zip
rpmresolve: Ensure we call the rpm relocation code at init
We need to call rpmcliInit to ensure the rpm relocation code is called and it correctly honours the relocation environmental variables. We can drop the ReadConfigFiles call since the cliInit does this for us. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/rpm/rpmresolve/rpmresolve.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rpm/rpmresolve/rpmresolve.c b/meta/recipes-devtools/rpm/rpmresolve/rpmresolve.c
index 2d9ed141f4..568b6891f4 100644
--- a/meta/recipes-devtools/rpm/rpmresolve/rpmresolve.c
+++ b/meta/recipes-devtools/rpm/rpmresolve/rpmresolve.c
@@ -343,9 +343,10 @@ int main(int argc, char **argv)
const char *dblistfn = argv[optind];
+ rpmcliInit(argc, argv, NULL);
+
//rpmSetVerbosity(RPMLOG_DEBUG);
- rpmReadConfigFiles( NULL, NULL );
rpmDefineMacro(NULL, "__dbi_txn create nofsync", RMIL_CMDLINE);
rc = loadTs(&ts, &tscount, dblistfn);