diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-11-23 23:16:32 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2005-11-23 23:16:32 +0000 |
commit | 81083cb48d648e0fd96ce3d39df64c71ec15f17b (patch) | |
tree | e091bc02d4bfd0219d63095d53c5686d7446c11a /rdiff-backup/rdiff_backup/rpath.py | |
parent | b013f40c0c2d1bbbbe1d58208eef9477a791fa0b (diff) | |
download | rdiff-backup-81083cb48d648e0fd96ce3d39df64c71ec15f17b.tar.gz |
Final (?) too-long-filename bug fix
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@687 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/rpath.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/rpath.py | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py index 47f3b3e..1f10f1a 100644 --- a/rdiff-backup/rdiff_backup/rpath.py +++ b/rdiff-backup/rdiff_backup/rpath.py @@ -357,8 +357,10 @@ class RORPath: elif key == 'resourcefork' and not Globals.resource_forks_write: pass elif key == 'sha1': pass # one or other may not have set + elif key == 'mirrorname' or key == 'incname': pass elif (not other.data.has_key(key) or - self.data[key] != other.data[key]): return 0 + self.data[key] != other.data[key]): + return 0 if self.lstat() and not self.issym() and Globals.change_ownership: # Now compare ownership. Symlinks don't have ownership @@ -654,6 +656,42 @@ class RORPath: """Record resource fork in dictionary. Does not write""" self.data['resourcefork'] = rfork + def has_alt_mirror_name(self): + """True if rorp has an alternate mirror name specified""" + return self.data.has_key('mirrorname') + + def get_alt_mirror_name(self): + """Return alternate mirror name (for long filenames)""" + return self.data['mirrorname'] + + def set_alt_mirror_name(self, filename): + """Set alternate mirror name to filename + + Instead of writing to the traditional mirror file, store + mirror information in filename in the long filename + directory. + + """ + self.data['mirrorname'] = filename + + def has_alt_inc_name(self): + """True if rorp has an alternate increment base specified""" + return self.data.has_key('incname') + + def get_alt_inc_name(self): + """Return alternate increment base (used for long name support)""" + return self.data['incname'] + + def set_alt_inc_name(self, name): + """Set alternate increment name to name + + If set, increments will be in the long name directory with + name as their base. If the alt mirror name is set, this + should be set to the same. + + """ + self.data['incname'] = name + def has_sha1(self): """True iff self has its sha1 digest set""" return self.data.has_key('sha1') |