aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-12-10 08:38:51 (GMT)
committerZac Medico <zmedico@gentoo.org>2012-12-10 08:38:51 (GMT)
commitdb157a4096dac7a7028357c7f1b5ae5c05eb82ae (patch)
tree876e0c9e95dfac7a17751855c0cb7574576066b4
parentget_real_flag: handle implicit iuse (diff)
downloadportage-db157a4096dac7a7028357c7f1b5ae5c05eb82ae.zip
portage-db157a4096dac7a7028357c7f1b5ae5c05eb82ae.tar.gz
portage-db157a4096dac7a7028357c7f1b5ae5c05eb82ae.tar.bz2
MergeProcess: avoid duplicate elog, bug #446136
-rw-r--r--pym/portage/dbapi/_MergeProcess.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/dbapi/_MergeProcess.py b/pym/portage/dbapi/_MergeProcess.py
index 9be68d3..cd9b122 100644
--- a/pym/portage/dbapi/_MergeProcess.py
+++ b/pym/portage/dbapi/_MergeProcess.py
@@ -152,6 +152,9 @@ class MergeProcess(ForkProcess):
self._elog_reader_fd = elog_reader_fd
self._buf = ""
self._elog_keys = set()
+ # Discard messages which will be collected by the subprocess,
+ # in order to avoid duplicates (bug #446136).
+ portage.elog.messages.collect_messages(key=mylink.mycpv)
# invalidate relevant vardbapi caches
if self.vartree.dbapi._categories is not None: