Fix dep_transform breakage (regression from r4596).
authorZac Medico <zmedico@gentoo.org>
Sun, 8 Oct 2006 01:07:10 +0000 (01:07 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 8 Oct 2006 01:07:10 +0000 (01:07 -0000)
svn path=/main/trunk/; revision=4617

pym/portage_update.py

index 5f5af809f979f30af47bfc6d5ebcb0ff6fd496ee..bed74c35ccd379e5641d9a379a0e821bbe10a531 100644 (file)
@@ -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