Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 131918 Details for
Bug 192341
portage only outputs brief error message when python imports fail, causing secondary failures later
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
implement chflags() and lchflags() by spawning the chflags command
chflags_spawn.patch (text/plain), 861 bytes, created by
Zac Medico
on 2007-09-26 01:51:32 UTC
(
hide
)
Description:
implement chflags() and lchflags() by spawning the chflags command
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-09-26 01:51:32 UTC
Size:
861 bytes
patch
obsolete
>Index: pym/portage.py >=================================================================== >--- pym/portage.py (revision 7807) >+++ pym/portage.py (working copy) >@@ -44,10 +44,23 @@ > > bsd_chflags = None > if os.uname()[0] in ["FreeBSD"]: >- try: >- import freebsd as bsd_chflags >- except ImportError: >+ def bsd_chflags(): > pass >+ def _chflags(path, flags, opts=""): >+ cmd = "chflags %s %o '%s'" % (opts, flags, path) >+ status, output = commands.getstatusoutput(cmd) >+ retval = os.WEXITSTATUS(status) >+ if os.WIFEXITED(status) and retval == os.EX_OK: >+ return >+ e = OSError(retval, output) >+ e.errno = retval >+ e.filename = path >+ e.message = output >+ raise e >+ def _lchflags(path, flags): >+ return _chflags(path, flags, opts="-h") >+ bsd_chflags.chflags = _chflags >+ bsd_chflags.lchflags = _lchflags > > try: > from cache.cache_errors import CacheError
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192341
:
130873
| 131918