[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

PATCH: pyblock: fix dm import from native C-code with pythion-2.6



This patch fixes a problem where the c-code fails to import the module dm,
causing dmraid set activation to not work in rawhide.
---
 dmraid.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dmraid.c b/dmraid.c
index 561f385..3b2f3c7 100644
--- a/dmraid.c
+++ b/dmraid.c
@@ -795,7 +795,7 @@ pydmraid_raidset_get_dm_table(PyObject *self, void *data)
 		goto out;

 	/* get the DSO for block.dm loaded */
-	m = PyImport_ImportModule("dm");
+	m = PyImport_ImportModule("block.dm");
 	if (!m)
 		goto out;

@@ -850,7 +850,7 @@ pydmraid_raidset_get_map(PyObject *self, void *data)
 	if (!args)
 		goto out;

-	m = PyImport_ImportModule("dm");
+	m = PyImport_ImportModule("block.dm");
 	if (!m)
 		goto out;

--
1.6.1.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]