[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH] libudev now has a version of .1
- From: Vratislav Podzimek <vpodzime redhat com>
- To: anaconda-devel-list redhat com
- Subject: Re: [PATCH] libudev now has a version of .1
- Date: Fri, 13 Jul 2012 10:23:21 +0200
Please note that we are now sending patches for a review to the
anaconda-patches lists fedorahosted org mailing list.
On Thu, 2012-07-12 at 14:50 -0500, Mark Hamzy wrote:
> libudev bumped the version number up to /usr/lib64/libudev.so.1
> Also, change the error message from None.
>
> ---
> pyanaconda/pyudev.py | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/pyanaconda/pyudev.py b/pyanaconda/pyudev.py
> index 4b5d586..705b93d 100644
> --- a/pyanaconda/pyudev.py
> +++ b/pyanaconda/pyudev.py
> @@ -31,10 +31,12 @@ def find_library(name, somajor=0):
> return None
>
> # find the udev library
> -libudev = find_library(name="udev", somajor=0)
> +name = "udev"
> +somajor = 1
> +libudev = find_library(name=name, somajor=somajor)
>
> if not libudev or not os.path.exists(libudev):
> - raise ImportError, "No library named %s" % libudev
> + raise ImportError, "No library named %s.%d" % (name, somajor)
>
> # load the udev library
> libudev = CDLL(libudev)
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]