diff options
-rw-r--r-- | pym/portage/__init__.py | 3 |
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) |