projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1599ad4
)
Use stat st_dev attributes instead of the older approach.
author
Zac Medico
<zmedico@gentoo.org>
Thu, 27 Nov 2008 02:34:52 +0000
(
02:34
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 27 Nov 2008 02:34:52 +0000
(
02:34
-0000)
svn path=/main/trunk/; revision=12117
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index d61803fe0d4bab7b95a1b48797f8829e5d15821d..6ebfae4f19dec8b4a29cd5e8fb1552f87e855d92 100644
(file)
--- 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)