Merge pull request #2 from dehnert/master
authorEvan Broder <broder@mit.edu>
Fri, 16 Dec 2011 20:39:32 +0000 (12:39 -0800)
committerEvan Broder <broder@mit.edu>
Fri, 16 Dec 2011 20:39:32 +0000 (12:39 -0800)
Various fixes to PyAFS

afs/_util.pyx
afs/pts.py
setup.py

index f7f167b..932bdf0 100644 (file)
@@ -54,6 +54,7 @@ class AFSException(Exception):
         return "[%s] %s" % (self.errno, self.strerror)
 
 def pyafs_error(code):
+    global _init
     if not _init:
         initialize_ACFG_error_table()
         initialize_KTC_error_table()
index e9f3c98..95c6d4a 100644 (file)
@@ -215,7 +215,7 @@ class PTEntry(object):
 
       groups: For users, this contains a collection class representing
         the set of groups the user is a member of.
-      users: For groups, this contains a collection class representing
+      members: For groups, this contains a collection class representing
         the members of this group.
     """
     _attrs = ('id', 'name', 'count', 'flags', 'ngroups', 'nusers')
index 1f28113..4c5c317 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ include_dirs = [os.path.join(os.path.dirname(__file__), 'afs'),
                 '%s/include' % root]
 library_dirs = ['%s/lib' % root,
                 '%s/lib/afs' % root]
-if os.path.exists('%s/lib/libafsauthent_pic.a' % root):
+if os.path.exists('%s/lib/libafsauthent_pic.a' % root) or os.path.exists('%s/lib64/libafsauthent_pic.a' % root):
     suffix = '_pic'
 else:
     suffix = ''