Comment in portage.movefile() that it's impossible to preserve timestamps of a symlin...
authorZac Medico <zmedico@gentoo.org>
Wed, 6 Jun 2007 03:37:11 +0000 (03:37 -0000)
committerZac 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

index db268e5fd7d53eb0298883683b726d19783504f2..901e25875def4138649884e9703f6a13ce2c04f4 100644 (file)
@@ -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