From fcfc91fc87a68c760d3df3e41b1056311c5b6d0e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 27 Nov 2008 02:34:52 +0000 Subject: [PATCH] Use stat st_dev attributes instead of the older approach. svn path=/main/trunk/; revision=12117 --- pym/portage/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 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) -- 2.26.2