197 |
if Globals.change_ownership and rp1.getuidgid() != rp2.getuidgid(): |
if Globals.change_ownership and rp1.getuidgid() != rp2.getuidgid(): |
198 |
result = None |
result = None |
199 |
elif rp1.getperms() != rp2.getperms(): result = None |
elif rp1.getperms() != rp2.getperms(): result = None |
|
elif rp1.getctime() != rp2.getctime(): result = None |
|
200 |
elif rp1.issym() and rp2.issym(): # Don't check times for some types |
elif rp1.issym() and rp2.issym(): # Don't check times for some types |
201 |
result = 1 |
result = 1 |
202 |
elif rp1.isblkdev() and rp2.isblkdev(): result = 1 |
elif rp1.isblkdev() and rp2.isblkdev(): result = 1 |
203 |
elif rp1.ischardev() and rp2.ischardev(): result = 1 |
elif rp1.ischardev() and rp2.ischardev(): result = 1 |
204 |
else: result = (rp1.getmtime() == rp2.getmtime()) |
else: |
205 |
|
result = ((rp1.getctime() == rp2.getctime()) and |
206 |
|
(rp1.getmtime() == rp2.getmtime())) |
207 |
log.Log("Compare attribs of %s and %s: %s" % |
log.Log("Compare attribs of %s and %s: %s" % |
208 |
(rp1.get_indexpath(), rp2.get_indexpath(), result), 7) |
(rp1.get_indexpath(), rp2.get_indexpath(), result), 7) |
209 |
return result |
return result |