From: Fabian Groffen Date: Sun, 28 Oct 2007 08:27:25 +0000 (-0000) Subject: Apply 'disable chflags when apparently absent on BSD'-patch from zmedico on gentoo... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4ab75c83f5d59d85614c68ae81c5311a8e8767c2;p=portage.git 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 --- 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