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

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



looks good
----- "Hans de Goede" <hdegoede redhat com> wrote:

> 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 redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

-- 
Joel Andres Granados
Red Hat / Brno Czech Republic


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