From: Zac Medico Date: Mon, 19 Jul 2010 05:45:45 +0000 (-0700) Subject: Skip unecessary stat calls on PORTAGE_RO_DISTDIRS in X-Git-Tag: v2.2_rc68~488 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4caf362abfd8a435929f49552d808be4bec465bf;p=portage.git Skip unecessary stat calls on PORTAGE_RO_DISTDIRS in portdbapi.getfetchsizes(). --- diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 07a7b0c62..9c67c7884 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -786,8 +786,7 @@ class portdbapi(dbapi): filesdict={} myfiles = self.getFetchMap(mypkg, useflags=useflags) ro_distdirs = [x for x in \ - shlex_split(self.settings.get("PORTAGE_RO_DISTDIRS", "")) \ - if os.path.isdir(x)] + shlex_split(self.settings.get("PORTAGE_RO_DISTDIRS", ""))] #XXX: maybe this should be improved: take partial downloads # into account? check checksums? for myfile in myfiles: