projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74fe0fb
)
Comment in portage.movefile() that it's impossible to preserve timestamps of a symlin...
author
Zac Medico
<zmedico@gentoo.org>
Wed, 6 Jun 2007 03:37:11 +0000
(
03:37
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 6 Jun 2007 03:37:11 +0000
(
03:37
-0000)
svn path=/main/trunk/; revision=6740
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index db268e5fd7d53eb0298883683b726d19783504f2..901e25875def4138649884e9703f6a13ce2c04f4 100644
(file)
--- a/
pym/portage/__init__.py
+++ b/
pym/portage/__init__.py
@@
-3971,6
+3971,8
@@
def movefile(src,dest,newmtime=None,sstat=None,mysettings=None):
else:
os.symlink(target,dest)
lchown(dest,sstat[stat.ST_UID],sstat[stat.ST_GID])
+ # utime() only works on the target of a symlink, so it's not
+ # possible to perserve mtime on symlinks.
return os.lstat(dest)[stat.ST_MTIME]
except SystemExit, e:
raise