Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 46096 | Differences between
and this patch

Collapse All | Expand All

(-)portage-orig/pym/portage.py (-3 / +3 lines)
Lines 3515-3523 Link Here
3515
			continue
3515
			continue
3516
		old_value = re.escape(old_value);
3516
		old_value = re.escape(old_value);
3517
		mycontent = re.sub(old_value+"$", new_value, mycontent)
3517
		mycontent = re.sub(old_value+"$", new_value, mycontent)
3518
		mycontent = re.sub(old_value+"(\s)", new_value+"\1", mycontent)
3518
		mycontent = re.sub(old_value+"(\s)", new_value+"\\1", mycontent)
3519
		mycontent = re.sub(old_value+"(-[^a-zA-Z])", new_value+"\1", mycontent)
3519
		mycontent = re.sub(old_value+"(-[^a-zA-Z])", new_value+"\\1", mycontent)
3520
		mycontent = re.sub(old_value+"([^a-zA-Z0-9-])", new_value+"\1", mycontent)
3520
		mycontent = re.sub(old_value+"([^a-zA-Z0-9-])", new_value+"\\1", mycontent)
3521
		f = open(dbdir+"/"+myfile, "w")
3521
		f = open(dbdir+"/"+myfile, "w")
3522
		f.write(mycontent)
3522
		f.write(mycontent)
3523
		f.close()
3523
		f.close()

Return to bug 46096