Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 24364 Details for
Bug 39312
varexpand() has limited support for variables referenced without {}
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Same as first one except with diff -u instead of plain diff
portage-2.0.50_pre19-varexpand.patch (text/plain), 1.03 KB, created by
Jason Stubbs (RETIRED)
on 2004-01-24 22:32:50 UTC
(
hide
)
Description:
Same as first one except with diff -u instead of plain diff
Filename:
MIME Type:
Creator:
Jason Stubbs (RETIRED)
Created:
2004-01-24 22:32:50 UTC
Size:
1.03 KB
patch
obsolete
>--- /usr/lib/portage/pym/portage.py 2004-01-24 01:21:34.000000000 +0900 >+++ portage.py 2004-01-25 15:12:43.232595816 +0900 >@@ -983,22 +983,29 @@ > continue > elif (mystring[pos]=="$") and (mystring[pos-1]!="\\"): > pos=pos+1 >- if (pos+1)>=len(mystring): >- cexpand[mystring]="" >- return "" > if mystring[pos]=="{": > pos=pos+1 >- terminus="}" >+ braced=True > else: >- terminus=string.whitespace >+ braced=False > myvstart=pos >- while mystring[pos] not in terminus: >+ validchars=string.ascii_letters+string.digits+"_" >+ while mystring[pos] in validchars: > if (pos+1)>=len(mystring): >- cexpand[mystring]="" >- return "" >+ if braced: >+ cexpand[mystring]="" >+ return "" >+ else: >+ pos=pos+1 >+ break > pos=pos+1 > myvarname=mystring[myvstart:pos] >- pos=pos+1 >+ if braced: >+ if mystring[pos]!="}": >+ cexpand[mystring]="" >+ return "" >+ else: >+ pos=pos+1 > if len(myvarname)==0: > cexpand[mystring]="" > return ""
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 39312
:
24363
| 24364