depgraph: Remove obsolete 'Missing binary' code.
authorZac Medico <zmedico@gentoo.org>
Sun, 10 Oct 2010 21:57:08 +0000 (14:57 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 10 Oct 2010 21:57:08 +0000 (14:57 -0700)
pym/_emerge/depgraph.py

index a37a5989bf5b0b423c89053707c3d5f16e622ee3..a9c75be6d2f56c9b021b8b9e9e83bb0ce4f801a1 100644 (file)
@@ -1931,17 +1931,6 @@ class depgraph(object):
                if not self._create_graph():
                        return 0, myfavorites
 
-               missing=0
-               if "--usepkgonly" in self._frozen_config.myopts:
-                       for xs in self._dynamic_config.digraph.all_nodes():
-                               if not isinstance(xs, Package):
-                                       continue
-                               if len(xs) >= 4 and xs[0] != "binary" and xs[3] == "merge":
-                                       if missing == 0:
-                                               writemsg("\n", noiselevel=-1)
-                                       missing += 1
-                                       writemsg("Missing binary for: %s\n" % xs[2], noiselevel=-1)
-
                try:
                        self.altlist()
                except self._unknown_internal_error:
@@ -1954,12 +1943,11 @@ class depgraph(object):
                        set(self._dynamic_config.digraph).intersection( \
                        self._dynamic_config._needed_license_changes) :
                        #We failed if the user needs to change the configuration
-                       if not missing:
-                               self._dynamic_config._success_without_autounmask = True
+                       self._dynamic_config._success_without_autounmask = True
                        return False, myfavorites
 
                # We're true here unless we are missing binaries.
-               return (not missing,myfavorites)
+               return (True, myfavorites)
 
        def _set_args(self, args):
                """