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>
Thu, 31 Mar 2011 15:41:52 +0000 (08:41 -0700)
This will fix bug #361463.

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

index d573b5d602b7e7d51d8d27620d21707a3cbe833e..6c3579f73c8a0ea8201c2dcdca922249b8ae9574 100644 (file)
@@ -644,8 +644,8 @@ class Display(object):
                        pkg_info.fetch_symbol = red("F")
                        if pkg_info.ordered:
                                self.counters.restrict_fetch += 1
-                       if self.portdb.fetch_check(pkg.cpv, pkg_info.use,
-                                       myrepo=pkg.repo):
+                       if not self.portdb.getfetchsizes(pkg.cpv,
+                               useflags=pkg_info.use, myrepo=pkg.repo):
                                pkg_info.fetch_symbol = green("f")
                                if pkg_info.ordered:
                                        self.counters.restrict_fetch_satisfied += 1
index bcf64dc412aabea278c80de690925abc38c477d2..cd74d21df9699b461b722236dfcdd69e0632a145 100644 (file)
@@ -615,6 +615,9 @@ class portdbapi(dbapi):
                return filesdict
 
        def fetch_check(self, mypkg, useflags=None, mysettings=None, all=False, myrepo=None):
+               """
+               TODO: account for PORTAGE_RO_DISTDIRS
+               """
                if all:
                        useflags = None
                elif useflags is None: