Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 177591
Collapse All | Expand All

(-)pym/portage_util.py (-1 / +5 lines)
Lines 351-357 Link Here
351
	
351
	
352
#cache expansions of constant strings
352
#cache expansions of constant strings
353
cexpand={}
353
cexpand={}
354
def varexpand(mystring,mydict={}):
354
def varexpand(mystring, mydict={}, remove_quotes=False):
355
	newstring = cexpand.get(" "+mystring, None)
355
	newstring = cexpand.get(" "+mystring, None)
356
	if newstring is not None:
356
	if newstring is not None:
357
		return newstring
357
		return newstring
Lines 373-378 Link Here
373
			if (indoub):
373
			if (indoub):
374
				newstring=newstring+"'"
374
				newstring=newstring+"'"
375
			else:
375
			else:
376
				if not remove_quotes:
377
					newstring += "'"
376
				insing=not insing
378
				insing=not insing
377
			pos=pos+1
379
			pos=pos+1
378
			continue
380
			continue
Lines 380-385 Link Here
380
			if (insing):
382
			if (insing):
381
				newstring=newstring+'"'
383
				newstring=newstring+'"'
382
			else:
384
			else:
385
				if not remove_quotes:
386
					newstring += '"'
383
				indoub=not indoub
387
				indoub=not indoub
384
			pos=pos+1
388
			pos=pos+1
385
			continue
389
			continue

Return to bug 177591