Display: fix fetch restrict msg for RO_DISTDIRS
authorZac Medico <zmedico@gentoo.org>
Thu, 31 Mar 2011 15:41:52 +0000 (08:41 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 13 Apr 2011 07:48:53 +0000 (00:48 -0700)
This will fix bug #361463.

pym/_emerge/resolver/output.py
pym/portage/dbapi/porttree.py

index a5b5e27b7e312763dca8787ff5fd080f0468c518..5991df525854754c42de46ecb9b156d5abf27243 100644 (file)
@@ -356,7 +356,7 @@ def display(depgraph, mylist, favorites=[], verbosity=None):
                                fetch = red("F")
                                if ordered:
                                        counters.restrict_fetch += 1
-                               if portdb.fetch_check(pkg_key, pkg_use):
+                               if not portdb.getfetchsizes(pkg.cpv, useflags=pkg_use):
                                        fetch = green("f")
                                        if ordered:
                                                counters.restrict_fetch_satisfied += 1
index e1340d18ba16cc289e4056c6a6cd6c2d9aaea738..11cc4522505bf905ebab5d71a6f595000cbd1943 100644 (file)
@@ -706,6 +706,9 @@ class portdbapi(dbapi):
                return filesdict
 
        def fetch_check(self, mypkg, useflags=None, mysettings=None, all=False):
+               """
+               TODO: account for PORTAGE_RO_DISTDIRS
+               """
                if all:
                        useflags = None
                elif useflags is None: