projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1917191
)
Apply 'disable chflags when apparently absent on BSD'-patch from zmedico on gentoo...
author
Fabian Groffen
<grobian@gentoo.org>
Sun, 28 Oct 2007 08:27:25 +0000
(08:27 -0000)
committer
Fabian Groffen
<grobian@gentoo.org>
Sun, 28 Oct 2007 08:27:25 +0000
(08:27 -0000)
svn path=/main/branches/prefix/; revision=8330
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index 3e02d836f2ae1620b65e3250228fe6b768e2ea6a..0f5443298973936a483b66af0a464ed586dea4b0 100644
(file)
--- 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