summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-27 02:34:52 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-27 02:34:52 +0000
commitfcfc91fc87a68c760d3df3e41b1056311c5b6d0e (patch)
tree33886c8a1f0a4decc08764b28d80567c0fe5ba9f
parent1599ad494fb12f24513862c0b0c9a1f95d50dc1e (diff)
downloadportage-fcfc91fc87a68c760d3df3e41b1056311c5b6d0e.tar.gz
portage-fcfc91fc87a68c760d3df3e41b1056311c5b6d0e.tar.bz2
portage-fcfc91fc87a68c760d3df3e41b1056311c5b6d0e.zip
Use stat st_dev attributes instead of the older approach.
svn path=/main/trunk/; revision=12117
-rw-r--r--pym/portage/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index d61803fe0..6ebfae4f1 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -6081,8 +6081,7 @@ def movefile(src, dest, newmtime=None, sstat=None, mysettings=None,
renamefailed=1
if hardlinked:
renamefailed = False
- if not hardlinked and \
- (selinux_enabled or sstat[stat.ST_DEV] == dstat[stat.ST_DEV]):
+ if not hardlinked and (selinux_enabled or sstat.st_dev == dstat.st_dev):
try:
if selinux_enabled:
ret=selinux.secure_rename(src,dest)