projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
242b112
)
Use stat rather than lstat since portage.fetch() creates symlinks when
author
Zac Medico
<zmedico@gentoo.org>
Tue, 2 Mar 2010 20:06:14 +0000
(20:06 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 2 Mar 2010 20:06:14 +0000
(20:06 -0000)
PORTAGE_RO_DISTDIRS is used. (trunk r15315)
svn path=/main/branches/2.1.7/; revision=15550
pym/_emerge/EbuildFetcher.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/EbuildFetcher.py
b/pym/_emerge/EbuildFetcher.py
index acb5ead4a68b3c2f74102a63ad5bd07ab17121ad..cf2319b0105bbc3a4eb03c8c372560fd154965a4 100644
(file)
--- 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.
l
stat(os.path.join(distdir, filename))
+ st = os.stat(os.path.join(distdir, filename))
except OSError:
return False
if st.st_size == 0: