diff options
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm/rpm-py-init.patch')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm/rpm-py-init.patch | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-py-init.patch b/meta/recipes-devtools/rpm/rpm/rpm-py-init.patch index 07d407d36a..92ef1dc50e 100644 --- a/meta/recipes-devtools/rpm/rpm/rpm-py-init.patch +++ b/meta/recipes-devtools/rpm/rpm/rpm-py-init.patch | |||
@@ -11,15 +11,17 @@ Upstream-Status: Pending | |||
11 | 11 | ||
12 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | 12 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> |
13 | 13 | ||
14 | Index: rpm-5.4.14/python/rpmmodule.c | 14 | Index: rpm/python/rpmmodule.c |
15 | =================================================================== | 15 | =================================================================== |
16 | --- rpm-5.4.14.orig/python/rpmmodule.c | 16 | --- rpm.orig/python/rpmmodule.c |
17 | +++ rpm-5.4.14/python/rpmmodule.c | 17 | +++ rpm/python/rpmmodule.c |
18 | @@ -392,7 +392,8 @@ void init_rpm(void) | 18 | @@ -382,9 +382,8 @@ static int initModule(PyObject *m) |
19 | if (Py_AtExit(rpm_exithook) == -1) | 19 | /* XXX add --noparentdirs --nolinktos to rpmtsCheck() */ |
20 | return; | 20 | global_depFlags = (RPMDEPS_FLAG_NOPARENTDIRS | RPMDEPS_FLAG_NOLINKTOS); |
21 | 21 | ||
22 | - rpmReadConfigFiles(NULL, NULL); | 22 | - /* failure to initialize rpm (crypto and all) is rather fatal too... */ |
23 | - if (rpmReadConfigFiles(NULL, NULL) == -1) | ||
24 | - return 0; | ||
23 | + const char *argv[1] = {"rpmmodule", 0}; | 25 | + const char *argv[1] = {"rpmmodule", 0}; |
24 | + rpmcliInit(1, argv, NULL); | 26 | + rpmcliInit(1, argv, NULL); |
25 | 27 | ||