Index: pym/portage_util.py =================================================================== --- pym/portage_util.py (revision 6495) +++ pym/portage_util.py (working copy) @@ -351,7 +351,7 @@ #cache expansions of constant strings cexpand={} -def varexpand(mystring,mydict={}): +def varexpand(mystring, mydict={}, remove_quotes=False): newstring = cexpand.get(" "+mystring, None) if newstring is not None: return newstring @@ -373,6 +373,8 @@ if (indoub): newstring=newstring+"'" else: + if not remove_quotes: + newstring += "'" insing=not insing pos=pos+1 continue @@ -380,6 +382,8 @@ if (insing): newstring=newstring+'"' else: + if not remove_quotes: + newstring += '"' indoub=not indoub pos=pos+1 continue