summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2007-07-11 00:22:04 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2007-07-11 00:22:04 +0000
commitdfaf1e838bf9d83abdb9ee2927d56d2d1ebd7c9d (patch)
tree8e81b35b2c057ecb5004d2f03d63f71c056d722d
parent882437e83f67e6a85ed2827153e4f351d8bb4c68 (diff)
downloadrdiff-backup-dfaf1e838bf9d83abdb9ee2927d56d2d1ebd7c9d.tar.gz
Make sure isincfile() always sets inc_compressed
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@819 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/rdiff_backup/rpath.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py
index 37ac54c..51b221b 100644
--- a/rdiff-backup/rdiff_backup/rpath.py
+++ b/rdiff-backup/rdiff_backup/rpath.py
@@ -1074,11 +1074,11 @@ class RPath(RORPath):
if self.index: dotsplit = self.index[-1].split(".")
else: dotsplit = self.base.split(".")
if dotsplit[-1] == "gz":
- compressed = 1
+ self.inc_compressed = 1
if len(dotsplit) < 4: return None
timestring, ext = dotsplit[-3:-1]
else:
- compressed = None
+ self.inc_compressed = None
if len(dotsplit) < 3: return None
timestring, ext = dotsplit[-2:]
if Time.stringtotime(timestring) is None: return None
@@ -1086,9 +1086,8 @@ class RPath(RORPath):
ext == "missing" or ext == "diff" or ext == "data"):
return None
self.inc_timestr = timestring
- self.inc_compressed = compressed
self.inc_type = ext
- if compressed: self.inc_basestr = ".".join(dotsplit[:-3])
+ if self.inc_compressed: self.inc_basestr = ".".join(dotsplit[:-3])
else: self.inc_basestr = ".".join(dotsplit[:-2])
return 1