]> code.ossystems Code Review - openembedded-core.git/commitdiff
rpmresolve: Ensure we call the rpm relocation code at init
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Aug 2012 08:28:00 +0000 (09:28 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Aug 2012 08:33:20 +0000 (09:33 +0100)
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>
meta/recipes-devtools/rpm/rpmresolve/rpmresolve.c

index 2d9ed141f4b2bcace9555db420e88c36fc63061f..568b6891f4c4722be75d9d38aa4eab85d4a4f9cd 100644 (file)
@@ -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);