Remove portage.const._ENABLE_XATTR. v2.2.0_alpha85
authorZac Medico <zmedico@gentoo.org>
Sat, 4 Feb 2012 14:47:48 +0000 (06:47 -0800)
committerZac Medico <zmedico@gentoo.org>
Sat, 4 Feb 2012 14:47:48 +0000 (06:47 -0800)
pym/portage/const.py
pym/portage/util/movefile.py

index bebb9220377b0ee67c717fd60b6a98d32fc1009e..5d6aabc0db4452fa473750d7d68c7a7b89f60b10 100644 (file)
@@ -165,7 +165,6 @@ _ENABLE_DYN_LINK_MAP    = True
 _ENABLE_PRESERVE_LIBS   = True
 _ENABLE_REPO_NAME_WARN  = True
 _ENABLE_SET_CONFIG      = True
-_ENABLE_XATTR           = True
 
 
 # The definitions above will differ between branches, so it's useful to have
@@ -178,8 +177,3 @@ 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)
index 9834c5a9507d8d65b9938288a123beebb7b31617..476f8e72adc4fda541c2195ac0c946dc0c4ceecb 100644 (file)
@@ -13,7 +13,7 @@ import portage
 from portage import bsd_chflags, _encodings, _os_overrides, _selinux, \
        _unicode_decode, _unicode_encode, _unicode_func_wrapper,\
        _unicode_module_wrapper
-from portage.const import MOVE_BINARY, _ENABLE_XATTR
+from portage.const import MOVE_BINARY
 from portage.exception import OperationNotSupported
 from portage.localization import _
 from portage.process import spawn
@@ -85,7 +85,7 @@ def movefile(src, dest, newmtime=None, sstat=None, mysettings=None,
                mysettings = portage.settings
 
        src_bytes = _unicode_encode(src, encoding=encoding, errors='strict')
-       xattr_enabled = _ENABLE_XATTR and "xattr" in mysettings.features
+       xattr_enabled = "xattr" in mysettings.features
        selinux_enabled = mysettings.selinux_enabled()
        if selinux_enabled:
                selinux = _unicode_module_wrapper(_selinux, encoding=encoding)