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