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

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

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

revision 1.19 by bescoto, Fri Nov 4 22:41:13 2005 UTC revision 1.20 by bescoto, Sun Nov 6 01:46:54 2005 UTC
# Line 64  class ParsingError(Exception): Line 64  class ParsingError(Exception):
64    
65  def carbonfile2string(cfile):  def carbonfile2string(cfile):
66          """Convert CarbonFile data to a string suitable for storing."""          """Convert CarbonFile data to a string suitable for storing."""
67            if not cfile: return "None"
68          retvalparts = []          retvalparts = []
69          retvalparts.append('creator:%s' % binascii.hexlify(cfile['creator']))          retvalparts.append('creator:%s' % binascii.hexlify(cfile['creator']))
70          retvalparts.append('type:%s' % binascii.hexlify(cfile['type']))          retvalparts.append('type:%s' % binascii.hexlify(cfile['type']))
# Line 107  def RORP2Record(rorpath): Line 108  def RORP2Record(rorpath):
108                                    
109                  # If there is Carbon data, save it.                  # If there is Carbon data, save it.
110                  if rorpath.has_carbonfile():                  if rorpath.has_carbonfile():
111                          if not rorpath.get_carbonfile(): cfile = "None"                          cfile = carbonfile2string(rorpath.get_carbonfile())
                         else: cfile = carbonfile2string(rorpath.get_carbonfile())  
112                          str_list.append("  CarbonFile %s\n" % (cfile,))                          str_list.append("  CarbonFile %s\n" % (cfile,))
113    
114                  # If file is hardlinked, add that information                  # If file is hardlinked, add that information

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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