From: Zac Medico Date: Tue, 2 Mar 2010 20:06:14 +0000 (-0000) Subject: Use stat rather than lstat since portage.fetch() creates symlinks when X-Git-Tag: v2.1.8~172 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=74c7cf277def5bfad8d11269d5199d1e37de9b4c;p=portage.git Use stat rather than lstat since portage.fetch() creates symlinks when PORTAGE_RO_DISTDIRS is used. (trunk r15315) svn path=/main/branches/2.1.7/; revision=15550 --- 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: