[oe-commits] Richard Purdie : rpmresolve: Ensure we call the rpm relocation code at init
git at git.openembedded.org
git at git.openembedded.org
Tue Aug 14 08:38:11 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: eb17fdc1461953382360635480f12357eac4dc43
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=eb17fdc1461953382360635480f12357eac4dc43
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Tue Aug 14 09:28:00 2012 +0100
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 at linuxfoundation.org>
---
meta/recipes-devtools/rpm/rpmresolve/rpmresolve.c | 3 ++-
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 2d9ed14..568b689 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);
More information about the Openembedded-commits
mailing list