summaryrefslogtreecommitdiffstats
path: root/pym/portage/const.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-12-10 22:41:01 -0800
committerZac Medico <zmedico@gentoo.org>2011-12-10 22:41:01 -0800
commitda0831b24be79e008939f8507f9d457367e533ee (patch)
tree57cce31a3b378799bf62fc231cbbe4ae92bfff6b /pym/portage/const.py
parent2b51a74bc093e476ece19d0a2194104585e4c903 (diff)
downloadportage-da0831b24be79e008939f8507f9d457367e533ee.tar.gz
portage-da0831b24be79e008939f8507f9d457367e533ee.tar.bz2
portage-da0831b24be79e008939f8507f9d457367e533ee.zip
Add _ENABLE_XATTR constant for the stable branch.
Diffstat (limited to 'pym/portage/const.py')
-rw-r--r--pym/portage/const.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/portage/const.py b/pym/portage/const.py
index 5c738e431..37abb1650 100644
--- a/pym/portage/const.py
+++ b/pym/portage/const.py
@@ -164,6 +164,7 @@ _ENABLE_DYN_LINK_MAP = True
_ENABLE_PRESERVE_LIBS = True
_ENABLE_REPO_NAME_WARN = True
_ENABLE_SET_CONFIG = True
+_ENABLE_XATTR = True
_SANDBOX_COMPAT_LEVEL = "22"
@@ -177,3 +178,8 @@ if not _ENABLE_PRESERVE_LIBS:
if not _ENABLE_SET_CONFIG:
WORLD_SETS_FILE = '/dev/null'
+
+if not _ENABLE_XATTR:
+ SUPPORTED_FEATURES = set(SUPPORTED_FEATURES)
+ SUPPORTED_FEATURES.remove("xattr")
+ SUPPORTED_FEATURES = frozenset(SUPPORTED_FEATURES)