When displaying masking messages, show the 'dependency required by' message
authorZac Medico <zmedico@gentoo.org>
Sat, 7 Nov 2009 20:54:55 +0000 (20:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 7 Nov 2009 20:54:55 +0000 (20:54 -0000)
before the masking docs message.

svn path=/main/trunk/; revision=14802

pym/_emerge/depgraph.py

index 157d84babb28e32ac65fabd2a68b21d2fbb3bcdb..77248ea651dab9332e703dd7d5770bbf299fb0b6 100644 (file)
@@ -2196,6 +2196,8 @@ class depgraph(object):
                        else:
                                show_missing_use = unmasked_iuse_reasons
 
+               mask_docs = False
+
                if show_missing_use:
                        print("\nemerge: there are no ebuilds built with USE flags to satisfy "+green(xinfo)+".")
                        print("!!! One of the following packages is required to complete your request:")
@@ -2219,7 +2221,7 @@ class depgraph(object):
                                for line in wrap(msg, 75):
                                        print(line)
                        print()
-                       show_mask_docs()
+                       mask_docs = True
                else:
                        print("\nemerge: there are no ebuilds to satisfy "+green(xinfo)+".")
 
@@ -2254,6 +2256,10 @@ class depgraph(object):
 
                print()
 
+               if mask_docs:
+                       show_mask_docs()
+                       print()
+
        def _iter_match_pkgs(self, root_config, pkg_type, atom, onlydeps=False):
                """
                Iterate over Package instances of pkg_type matching the given atom.