summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-29 13:55:07 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-29 13:55:07 -0700
commitd6bce25590c9b351fe833056a89c1dd0fc91ba47 (patch)
tree0956ca32babcfa0066383009b9c6589406d40705
parent0e120da008c9d0d41c9372c81145c6e153028a6d (diff)
downloadportage-d6bce25590c9b351fe833056a89c1dd0fc91ba47.tar.gz
portage-d6bce25590c9b351fe833056a89c1dd0fc91ba47.tar.bz2
portage-d6bce25590c9b351fe833056a89c1dd0fc91ba47.zip
action_metadata: use auxdbkeys to compare entries
This borrows the approach that egencache uses since commit 0e120da008c9d0d41c9372c81145c6e153028a6d.
-rw-r--r--pym/_emerge/actions.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 610a6c464..6ccf894d1 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -1779,13 +1779,7 @@ def action_metadata(settings, portdb, myopts, porttrees=None):
# We don't want to skip the write unless we're really
# sure that the existing cache is identical, so don't
# trust _mtime_ and _eclasses_ alone.
- keys = set()
- keys.update(src)
- keys.update(dest)
- keys.discard('_eclasses_')
- keys.discard('_mtime_')
- keys.discard(src_chf_key)
- for k in keys:
+ for k in auxdbkeys:
if dest.get(k, '') != src.get(k, ''):
dest = None
break