FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 01-27-2010, 04:46 PM
David Cantrell
 
Default Make sure we always check /lib64 and /lib in find_library (#555669).

LD_LIBRARY_PATH ended up being /tmp/updates on my test system, so make
sure we always check the default library paths in find_library().
---
pyudev.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pyudev.py b/pyudev.py
index b6e5ea9..58ea074 100644
--- a/pyudev.py
+++ b/pyudev.py
@@ -9,11 +9,12 @@ from ctypes import *
# XXX this one may need some tweaking...
def find_library(name, somajor=0):
env = os.environ.get("LD_LIBRARY_PATH")
+ common = ["/lib64", "/lib"]

if env:
- libdirs = env.split(":")
+ libdirs = env.split(":") + common
else:
- libdirs = ["/lib64", "/lib"]
+ libdirs = common

libdirs = filter(os.path.isdir, libdirs)

@@ -29,7 +30,6 @@ def find_library(name, somajor=0):
else:
return None

-
# find the udev library
libudev = find_library(name="udev", somajor=0)

--
1.6.6

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

Thread Tools




All times are GMT. The time now is 07:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org