From 4caf362abfd8a435929f49552d808be4bec465bf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 18 Jul 2010 22:45:45 -0700 Subject: Skip unecessary stat calls on PORTAGE_RO_DISTDIRS in portdbapi.getfetchsizes(). --- pym/portage/dbapi/porttree.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pym') 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: -- cgit v1.2.3-1-g7c22