From 61ee292b5976be4a7f0495cc1a5f4df75357bd03 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 3 Jun 2011 19:37:45 -0700 Subject: [PATCH] autounmask: include comments from package.mask This will fix bug #369985. --- pym/_emerge/depgraph.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 0b4be4f7f..64fe9c917 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -5662,7 +5662,20 @@ class depgraph(object): reason.unmask_hint.key == 'p_mask': keyword = reason.unmask_hint.value + comment, filename = portage.getmaskingreason( + pkg.cpv, metadata=pkg.metadata, + settings=pkgsettings, + portdb=pkg.root_config.trees["porttree"].dbapi, + return_location=True) + p_mask_change_msg[root].append(self._get_dep_chain_as_comment(pkg)) + if filename: + p_mask_change_msg[root].append("# %s:\n" % filename) + if comment: + comment = [line for line in + comment.splitlines() if line] + for line in comment: + p_mask_change_msg[root].append("%s\n" % line) if is_latest: p_mask_change_msg[root].append(">=%s\n" % pkg.cpv) elif is_latest_in_slot: -- 2.26.2