Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 161643 Details for
Bug 233303
Prevent portage from adjusting permissions every time on AFS/NFSv4 mounted distfiles
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for /usr/lib/portage/pym/portage/__init__.py
portage-init-new-distperm-feature.patch (text/plain), 1.63 KB, created by
Petr Polezhaev
on 2008-07-29 18:19:18 UTC
(
hide
)
Description:
Patch for /usr/lib/portage/pym/portage/__init__.py
Filename:
MIME Type:
Creator:
Petr Polezhaev
Created:
2008-07-29 18:19:18 UTC
Size:
1.63 KB
patch
obsolete
>--- __init__.py.old 2008-07-29 22:16:53.000000000 +0400 >+++ __init__.py 2008-07-29 22:06:40.000000000 +0400 >@@ -3468,18 +3468,19 @@ > if "distlocks" in features: > distdir_dirs.append(".locks") > try: >- for x in distdir_dirs: >- mydir = os.path.join(mysettings["DISTDIR"], x) >- if portage.util.ensure_dirs(mydir, gid=dir_gid, mode=dirmode, mask=modemask): >- writemsg("Adjusting permissions recursively: '%s'\n" % mydir, >- noiselevel=-1) >- def onerror(e): >- raise # bail out on the first error that occurs during recursion >- if not apply_recursive_permissions(mydir, >- gid=dir_gid, dirmode=dirmode, dirmask=modemask, >- filemode=filemode, filemask=modemask, onerror=onerror): >- raise portage.exception.OperationNotPermitted( >- "Failed to apply recursive permissions for the portage group.") >+ if "distperms" in features: >+ for x in distdir_dirs: >+ mydir = os.path.join(mysettings["DISTDIR"], x) >+ if portage.util.ensure_dirs(mydir, gid=dir_gid, mode=dirmode, mask=modemask): >+ writemsg("Adjusting permissions recursively: '%s'\n" % mydir, >+ noiselevel=-1) >+ def onerror(e): >+ raise # bail out on the first error that occurs during recursion >+ if not apply_recursive_permissions(mydir, >+ gid=dir_gid, dirmode=dirmode, dirmask=modemask, >+ filemode=filemode, filemask=modemask, onerror=onerror): >+ raise portage.exception.OperationNotPermitted( >+ "Failed to apply recursive permissions for the portage group.") > except portage.exception.PortageException, e: > if not os.path.isdir(mysettings["DISTDIR"]): > writemsg("!!! %s\n" % str(e), noiselevel=-1)
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 233303
: 161643