From: Zac Medico Date: Thu, 31 Mar 2011 15:41:52 +0000 (-0700) Subject: Display: fix fetch restrict msg for RO_DISTDIRS X-Git-Tag: v2.1.9.46~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=208260f4313489d9eb3d7fb318df64d1a7d4cd7b;p=portage.git Display: fix fetch restrict msg for RO_DISTDIRS This will fix bug #361463. --- diff --git a/pym/_emerge/resolver/output.py b/pym/_emerge/resolver/output.py index a5b5e27b7..5991df525 100644 --- a/pym/_emerge/resolver/output.py +++ b/pym/_emerge/resolver/output.py @@ -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 diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index e1340d18b..11cc45225 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -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: