diff options
-rw-r--r-- | pym/portage_update.py | 4 |
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 |