From 4ab75c83f5d59d85614c68ae81c5311a8e8767c2 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 28 Oct 2007 08:27:25 +0000 Subject: [PATCH] Apply 'disable chflags when apparently absent on BSD'-patch from zmedico on gentoo-alt ML. Cause not yet found. svn path=/main/branches/prefix/; revision=8330 --- pym/portage/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 3e02d836f..0f5443298 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -68,6 +68,10 @@ if os.uname()[0] in ["FreeBSD"]: return _chflags(path, flags, opts="-h") bsd_chflags.chflags = _chflags bsd_chflags.lchflags = _lchflags + if not hasattr(os.lstat("/"), "st_flags"): + sys.stderr.write("WARNING: BSD chflags are disabled since the st_flags attribute is missing!\n") + sys.stderr.flush() + bsd_chflags = None try: from portage.cache.cache_errors import CacheError -- 2.26.2