diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-07-18 22:45:45 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-07-18 22:45:45 -0700 |
commit | 4caf362abfd8a435929f49552d808be4bec465bf (patch) | |
tree | 9d398175a848d3b4ac93d5b2f4832fc26c72b9b7 | |
parent | 34c0a3e334ad884c9d85ef9683a1adafc8beb350 (diff) | |
download | portage-4caf362abfd8a435929f49552d808be4bec465bf.tar.gz portage-4caf362abfd8a435929f49552d808be4bec465bf.tar.bz2 portage-4caf362abfd8a435929f49552d808be4bec465bf.zip |
Skip unecessary stat calls on PORTAGE_RO_DISTDIRS in
portdbapi.getfetchsizes().
-rw-r--r-- | pym/portage/dbapi/porttree.py | 3 |
1 files changed, 1 insertions, 2 deletions
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: |