summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rdiff-backup/CHANGELOG3
-rw-r--r--rdiff-backup/rdiff_backup/metadata.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index 74d75a7..ba283ce 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -1,6 +1,9 @@
New in v1.2.2 (????/??/??)
---------------------------
+Properly fix "AttributeError: RPath instance has no attribute 'inc_compressed'"
+bug. Fix in 1.1.12 was in correct place, but wrong solution. (Andrew Ferguson)
+
Improve support for Python 2.5, which refactored the built-in exceptions so
that SystemExit and KeyboardInterrupt no longer derive from Exception.
Closes support request #106504. (Andrew Ferguson)
diff --git a/rdiff-backup/rdiff_backup/metadata.py b/rdiff-backup/rdiff_backup/metadata.py
index 1bbc5c6..2870955 100644
--- a/rdiff-backup/rdiff_backup/metadata.py
+++ b/rdiff-backup/rdiff_backup/metadata.py
@@ -379,8 +379,7 @@ class FlatFile:
self.fileobj = self.rp.open("rb", compress)
else:
assert mode == 'w'
- if not check_path: rp_base.isincfile()
- if compress and not rp_base.isinccompressed():
+ if compress and check_path and not rp_base.isinccompressed()):
def callback(rp): self.rp = rp
self.fileobj = rpath.MaybeGzip(rp_base, callback)
else: