[Pkg-owncloud-commits] [python-owncloud] 40/96: Fixed the call to ctypes's find_library function.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Nov 22 01:28:25 UTC 2013
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository python-owncloud.
commit 87dbca7edf2e2e42eb9741e6a4ec9e0c4396db71
Author: Diederik de Haas <github at cknow.org>
Date: Thu Mar 14 23:11:30 2013 +0100
Fixed the call to ctypes's find_library function.
The name parameter of the find_library function is the library name
without any prefix like lib, suffix like .so, .dylib or version number.
Since the name parameter was 'libocsync', it didn't find the library,
but with 'ocsync' as parameter it did find it.
I wouldn't be surprised if the hardcoded paths can now be removed, so
only relying on the find_library function.
---
csynclib.py | 2 +-
version.dat | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/csynclib.py b/csynclib.py
index 627b505..2ea8076 100644
--- a/csynclib.py
+++ b/csynclib.py
@@ -10,7 +10,7 @@ if os.path.exists('/usr/lib/libocsync.so.0'):
elif os.path.exists('/usr/lib64/libocsync.so.0'):
_libraries['/usr/lib/libocsync.so.0'] = CDLL('/usr/lib64/libocsync.so.0')
else:
- path = ctypes.util.find_library('libocsync')
+ path = ctypes.util.find_library('ocsync')
if path:
print 'Found libocsync @', path
_libraries['/usr/lib/libocsync.so.0'] = CDLL(path)
diff --git a/version.dat b/version.dat
index e37c568..de619bd 100644
--- a/version.dat
+++ b/version.dat
@@ -1 +1 @@
-{"head": "74f884492e94040fba59085244bda4f90103aad7", "float": 0.2, "string": "0.2"}
\ No newline at end of file
+{"head": "6ed982fffbdf9e5e019f901397f4916f3252eeee", "float": 0.2, "string": "0.2"}
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/python-owncloud.git
More information about the Pkg-owncloud-commits
mailing list