diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-27 02:36:41 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-27 02:36:41 +0000 |
commit | 36b4850b70e8b57c2a1bb548daad0fab4ae4e995 (patch) | |
tree | 865dbfff8ec2016c5ad9c2d69572e837fd997fcc | |
parent | Don't call prepare_build_dirs() inside doebuild() when called for parallel (diff) | |
download | portage-multirepo-2.1.6_rc2.tar.gz portage-multirepo-2.1.6_rc2.tar.bz2 portage-multirepo-2.1.6_rc2.zip |
Use stat st_dev attributes instead of the older approach. (trunk r12117)v2.1.6_rc2
svn path=/main/branches/2.1.6/; revision=12118
-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 862e50f1..9beb068c 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -6071,8 +6071,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) |