Lines 1-4
Link Here
|
1 |
# Copyright 2010-2013 Gentoo Foundation |
1 |
# Copyright 2010-2018 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
from __future__ import absolute_import, unicode_literals |
4 |
from __future__ import absolute_import, unicode_literals |
Lines 272-277
def movefile(src, dest, newmtime=None, sstat=None, mysettings=None,
Link Here
|
272 |
errors='strict') |
272 |
errors='strict') |
273 |
try: # For safety copy then move it over. |
273 |
try: # For safety copy then move it over. |
274 |
_copyfile(src_bytes, dest_tmp_bytes) |
274 |
_copyfile(src_bytes, dest_tmp_bytes) |
|
|
275 |
_apply_stat(sstat, dest_tmp_bytes) |
275 |
if xattr_enabled: |
276 |
if xattr_enabled: |
276 |
try: |
277 |
try: |
277 |
_copyxattr(src_bytes, dest_tmp_bytes, |
278 |
_copyxattr(src_bytes, dest_tmp_bytes, |
Lines 286-292
def movefile(src, dest, newmtime=None, sstat=None, mysettings=None,
Link Here
|
286 |
for line in msg: |
287 |
for line in msg: |
287 |
writemsg("!!! %s\n" % (line,), noiselevel=-1) |
288 |
writemsg("!!! %s\n" % (line,), noiselevel=-1) |
288 |
raise |
289 |
raise |
289 |
_apply_stat(sstat, dest_tmp_bytes) |
|
|
290 |
_rename(dest_tmp_bytes, dest_bytes) |
290 |
_rename(dest_tmp_bytes, dest_bytes) |
291 |
_os.unlink(src_bytes) |
291 |
_os.unlink(src_bytes) |
292 |
except SystemExit as e: |
292 |
except SystemExit as e: |
293 |
- |
|
|