summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Borgström <jonas@borgstrom.se>2015-04-15 21:45:14 +0200
committerJonas Borgström <jonas@borgstrom.se>2015-04-15 21:49:03 +0200
commite815d6da8e15be8ccd09b7a183bb22bad25cf3e6 (patch)
tree1cfef46bc6a6b79c951571365ce25a335171c3b3
parent848666e7cbf62cd18efbab2842f5df8ecd7ce23a (diff)
acl/xattr: Be less strict about unknown platforms0.15
Closes #239
-rw-r--r--CHANGES3
-rw-r--r--attic/platform.py4
-rw-r--r--attic/xattr.py9
3 files changed, 12 insertions, 4 deletions
diff --git a/CHANGES b/CHANGES
index 724191cae..6e64c5807 100644
--- a/CHANGES
+++ b/CHANGES
@@ -6,7 +6,8 @@ Here you can see the full list of changes between each Attic release.
Version 0.15
------------
-(feature release, released on X)
+(bugfix release, released on Apr 15, 2015)
+- xattr: Be less strict about unknown/unsupported platforms (#239)
- Reduce repository listing memory usage (#163).
- Fix BrokenPipeError for remote repositories (#233)
- Fix incorrect behavior with two character directory names (#265, #268)
diff --git a/attic/platform.py b/attic/platform.py
index 5e0ec917b..346d6b750 100644
--- a/attic/platform.py
+++ b/attic/platform.py
@@ -9,9 +9,9 @@ elif platform == 'FreeBSD':
elif platform == 'Darwin':
from attic.platform_darwin import acl_get, acl_set, API_VERSION
else:
- API_VERSION = 1
+ API_VERSION = 2
- def acl_get(path, item, numeric_owner=False):
+ def acl_get(path, item, st, numeric_owner=False):
pass
def acl_set(path, item, numeric_owner=False):
pass
diff --git a/attic/xattr.py b/attic/xattr.py
index e00610155..89ae7b209 100644
--- a/attic/xattr.py
+++ b/attic/xattr.py
@@ -248,4 +248,11 @@ elif sys.platform.startswith('freebsd'):
_check(func(path, EXTATTR_NAMESPACE_USER, name, value, len(value) if value else 0), path)
else:
- raise Exception('Unsupported platform: %s' % sys.platform)
+ def listxattr(path, *, follow_symlinks=True):
+ return []
+
+ def getxattr(path, name, *, follow_symlinks=True):
+ pass
+
+ def setxattr(path, name, value, *, follow_symlinks=True):
+ pass