diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-10-19 02:27:30 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-10-19 02:27:30 +0000 |
commit | a0e30bdc00ce9f72ec16588c365fb6113889f9d8 (patch) | |
tree | c1c2ad45b5753854670183357e827c96512a06eb /rdiff-backup/rdiff_backup/rpath.py | |
parent | 2e981b24cb15e7edecdbeee15a01c866c65178b3 (diff) | |
download | rdiff-backup-a0e30bdc00ce9f72ec16588c365fb6113889f9d8.tar.gz |
short-term (?) kludge so missing carbonfile data doesn't cause crash
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@634 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/rpath.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/rpath.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py index b9e84ca..95dd54f 100644 --- a/rdiff-backup/rdiff_backup/rpath.py +++ b/rdiff-backup/rdiff_backup/rpath.py @@ -1145,11 +1145,18 @@ class RPath(RORPath): self.data['carbonfile'] = cfile return cfile except MacOS.Error: + log.Log("Cannot read carbonfile information from %s" % + (self.path,), 2) self.data['carbonfile'] = None return self.data['carbonfile'] def write_carbonfile(self, cfile): """Write new carbon data to self.""" + if not cfile: + # This should be made cleaner---if you know Mac OS X tell + # me what could cause an error in get_carbonfile above + return + log.Log("Writing carbon data to %s" % (self.index,), 7) from Carbon.File import FSSpec import MacOS |