Skip unecessary stat calls on PORTAGE_RO_DISTDIRS in
authorZac Medico <zmedico@gentoo.org>
Mon, 19 Jul 2010 05:45:45 +0000 (22:45 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 19 Jul 2010 05:45:45 +0000 (22:45 -0700)
portdbapi.getfetchsizes().

pym/portage/dbapi/porttree.py

index 07a7b0c626a8aa7a187635640aca90b8cd536c4a..9c67c7884c541faa923daa0c5d4bc17d7a3610d4 100644 (file)
@@ -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: