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.

(From OE-Core rev: eb17fdc1461953382360635480f12357eac4dc43)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2012-08-14 09:28:00 +01:00
parent d45bbc5c75
commit 8b8748c8f9
1 changed files with 2 additions and 1 deletions

View 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);