summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-08 01:07:10 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-08 01:07:10 +0000
commitf6478d73f49287031bd9e3e3b050efb8425664fa (patch)
tree3e33e06ca5f642d11a1393018fd732c68d0ee103
parent5cf1a2a914a22233ae601ffbf903ac551660df56 (diff)
downloadportage-f6478d73f49287031bd9e3e3b050efb8425664fa.tar.gz
portage-f6478d73f49287031bd9e3e3b050efb8425664fa.tar.bz2
portage-f6478d73f49287031bd9e3e3b050efb8425664fa.zip
Fix dep_transform breakage (regression from r4596).
svn path=/main/trunk/; revision=4617
-rw-r--r--pym/portage_update.py4
1 files changed, 3 insertions, 1 deletions
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