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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux