From: Zac Medico Date: Sun, 8 Oct 2006 01:07:10 +0000 (-0000) Subject: Fix dep_transform breakage (regression from r4596). X-Git-Tag: v2.1.2~688 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f6478d73f49287031bd9e3e3b050efb8425664fa;p=portage.git Fix dep_transform breakage (regression from r4596). svn path=/main/trunk/; revision=4617 --- diff --git a/pym/portage_update.py b/pym/portage_update.py index 5f5af809f..bed74c35c 100644 --- a/pym/portage_update.py +++ b/pym/portage_update.py @@ -214,4 +214,6 @@ def update_config_files(config_root, protect, protect_mask, update_iter): continue def dep_transform(mydep, oldkey, newkey): - return mydep.replace(oldkey, newkey, 1) + if dep_getkey(mydep) == oldkey: + return mydep.replace(oldkey, newkey, 1) + return mydep