aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-07-17 15:21:04 -0700
committerZac Medico <zmedico@gentoo.org>2012-07-17 15:21:04 -0700
commit9ea1eb84c6c2cd91e31196471ec8ad4339988611 (patch)
tree858c3bb43a799b2f7bcaf3d97966847d5a24a831 /bin/emaint
parentprepstrip: avoid rm warning about cwd (diff)
downloadportage-9ea1eb84c6c2cd91e31196471ec8ad4339988611.tar.gz
portage-9ea1eb84c6c2cd91e31196471ec8ad4339988611.tar.bz2
portage-9ea1eb84c6c2cd91e31196471ec8ad4339988611.zip
Propagate EAPI for update_dbentry (bug #426476).
Diffstat (limited to 'bin/emaint')
-rwxr-xr-xbin/emaint7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/emaint b/bin/emaint
index 5f54f6af5..21604511b 100755
--- a/bin/emaint
+++ b/bin/emaint
@@ -335,12 +335,12 @@ class MoveHandler(object):
cpv_all.sort()
maxval = len(cpv_all)
aux_update = self._tree.dbapi.aux_update
- meta_keys = self._update_keys + ['repository']
- from portage.update import update_dbentries
+ meta_keys = self._update_keys + ['repository', 'EAPI']
if onProgress:
onProgress(maxval, 0)
for i, cpv in enumerate(cpv_all):
metadata = dict(zip(meta_keys, aux_get(cpv, meta_keys)))
+ eapi = metadata.pop('EAPI')
repository = metadata.pop('repository')
try:
updates = allupdates[repository]
@@ -351,7 +351,8 @@ class MoveHandler(object):
continue
if not updates:
continue
- metadata_updates = update_dbentries(updates, metadata)
+ metadata_updates = \
+ portage.update_dbentries(updates, metadata, eapi=eapi)
if metadata_updates:
errors.append("'%s' has outdated metadata" % cpv)
if onProgress: