79 |
if compress: diff = get_inc(incpref, "diff.gz") |
if compress: diff = get_inc(incpref, "diff.gz") |
80 |
else: diff = get_inc(incpref, "diff") |
else: diff = get_inc(incpref, "diff") |
81 |
|
|
82 |
Rdiff.write_delta(new, mirror, diff, compress) |
if Globals.process_uid != 0 and not new.readable(): |
83 |
|
# Check for unreadable files |
84 |
|
old_new_perms = new.getperms() |
85 |
|
new.chmod(0400 | old_new_perms) |
86 |
|
Rdiff.write_delta(new, mirror, diff, compress) |
87 |
|
new.chmod(old_new_perms) |
88 |
|
else: Rdiff.write_delta(new, mirror, diff, compress) |
89 |
rpath.copy_attribs(mirror, diff) |
rpath.copy_attribs(mirror, diff) |
90 |
return diff |
return diff |
91 |
|
|