summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-02-02 05:43:01 +0000
committerZac Medico <zmedico@gentoo.org>2010-02-02 05:43:01 +0000
commitbe42c7710e300097c1f56396f502e8e5f2edf389 (patch)
treefb0700c32f4149a0a4c2d4084a62d95e6b3b4aac
parent374ed272a759407201eaa779e19d488972a6e6ca (diff)
downloadportage-be42c7710e300097c1f56396f502e8e5f2edf389.tar.gz
portage-be42c7710e300097c1f56396f502e8e5f2edf389.tar.bz2
portage-be42c7710e300097c1f56396f502e8e5f2edf389.zip
Use stat rather than lstat since portage.fetch() creates symlinks when
PORTAGE_RO_DISTDIRS is used. svn path=/main/trunk/; revision=15315
-rw-r--r--pym/_emerge/EbuildFetcher.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py
index acb5ead4a..cf2319b01 100644
--- a/pym/_emerge/EbuildFetcher.py
+++ b/pym/_emerge/EbuildFetcher.py
@@ -101,8 +101,10 @@ class EbuildFetcher(SpawnProcess):
sizes = {}
for filename in uri_map:
+ # Use stat rather than lstat since portage.fetch() creates
+ # symlinks when PORTAGE_RO_DISTDIRS is used.
try:
- st = os.lstat(os.path.join(distdir, filename))
+ st = os.stat(os.path.join(distdir, filename))
except OSError:
return False
if st.st_size == 0: