summaryrefslogtreecommitdiffstats
path: root/pym/portage/util/movefile.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/util/movefile.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/util/movefile.py')
-rw-r--r--pym/portage/util/movefile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/util/movefile.py b/pym/portage/util/movefile.py
index 476f8e72a..9834c5a95 100644
--- a/pym/portage/util/movefile.py
+++ b/pym/portage/util/movefile.py
@@ -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
+from portage.const import MOVE_BINARY, _ENABLE_XATTR
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 = "xattr" in mysettings.features
+ xattr_enabled = _ENABLE_XATTR and "xattr" in mysettings.features
selinux_enabled = mysettings.selinux_enabled()
if selinux_enabled:
selinux = _unicode_module_wrapper(_selinux, encoding=encoding)