Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 345468 Details for
Bug 465180
python-utils-r1.eclass - python_optimize: correctly get a nice path without "//"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
updated python_optimize patch
nicepath.patch (text/plain), 768 bytes, created by
Greg Turner
on 2013-04-13 11:50:21 UTC
(
hide
)
Description:
updated python_optimize patch
Filename:
MIME Type:
Creator:
Greg Turner
Created:
2013-04-13 11:50:21 UTC
Size:
768 bytes
patch
obsolete
>--- a/eclass/python-utils-r1.eclass 2013-03-28 05:31:15.000000000 -0700 >+++ b/eclass/python-utils-r1.eclass 2013-04-13 04:41:36.419484800 -0700 >@@ -589,8 +589,8 @@ > # 2) skip paths which do not exist > # (python2.6 complains about them verbosely) > >- if [[ ${f} == /* && -d ${D}${f} ]]; then >- set -- "${D}${f}" "${@}" >+ if [[ ${f} == /* && -d ${D%/}${f} ]]; then >+ set -- "${D%/}${f}" "${@}" > fi > done < <("${PYTHON}" -c 'import sys; print("\0".join(sys.path))') > >@@ -600,8 +600,8 @@ > local d > for d; do > # make sure to get a nice path without // >- local instpath=${d#${D}} >- instpath=/${instpath##/} >+ local instpath=${d#${D%/}} >+ [[ ${instpath} =~ ^/*(.*)$ ]] && instpath="/${BASH_REMATCH[1]}" > > case "${EPYTHON}" in > python*)
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 465180
:
344904
| 345468