From da0831b24be79e008939f8507f9d457367e533ee Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 10 Dec 2011 22:41:01 -0800 Subject: Add _ENABLE_XATTR constant for the stable branch. --- pym/portage/util/movefile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/portage/util/movefile.py') 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) -- cgit v1.2.3-1-g7c22