/[rdiff-backup]/rdiff-backup/rdiff_backup/rpath.py
ViewVC logotype

Diff of /rdiff-backup/rdiff_backup/rpath.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.75 by bescoto, Wed Apr 6 05:15:51 2005 UTC revision 1.76 by dgaudet, Sun Jun 19 19:47:56 2005 UTC
# Line 197  def cmp_attribs(rp1, rp2): Line 197  def cmp_attribs(rp1, rp2):
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

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26