aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-11-22 11:37:05 -0800
committerZac Medico <zmedico@gentoo.org>2020-11-22 11:38:51 -0800
commitae8b18f868c9bd039643f89f28f9d92ce8966c3c (patch)
tree21615859e27f20ccdd9f4ed96e07435e42469d36
parentUpdates for portage-3.0.10 release (diff)
downloadportage-ae8b18f868c9bd039643f89f28f9d92ce8966c3c.tar.gz
portage-ae8b18f868c9bd039643f89f28f9d92ce8966c3c.tar.bz2
portage-ae8b18f868c9bd039643f89f28f9d92ce8966c3c.zip
compare_files: fix missing xattr handling
Fixes: a2e7bf7d1c7d ("compare_files: handle missing xattr support") Bug: https://bugs.gentoo.org/755950 Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--lib/portage/util/_compare_files.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/portage/util/_compare_files.py b/lib/portage/util/_compare_files.py
index 60d43aefa..7692797fc 100644
--- a/lib/portage/util/_compare_files.py
+++ b/lib/portage/util/_compare_files.py
@@ -9,7 +9,7 @@ import stat
from portage import _encodings
from portage import _unicode_encode
-from portage.util._xattr import xattr
+from portage.util._xattr import XATTRS_WORKS, xattr
def compare_files(file1, file2, skipped_types=()):
"""
@@ -45,7 +45,7 @@ def compare_files(file1, file2, skipped_types=()):
if "device_number" not in skipped_types and file1_stat.st_rdev != file2_stat.st_rdev:
differences.append("device_number")
- if (xattr.XATTRS_WORKS and "xattr" not in skipped_types and
+ if (XATTRS_WORKS and "xattr" not in skipped_types and
sorted(xattr.get_all(file1, nofollow=True)) != sorted(xattr.get_all(file2, nofollow=True))):
differences.append("xattr")