From 24d7fd59dac08488ac94f80cfa586f90b619698b Mon Sep 17 00:00:00 2001 From: dgaudet Date: Fri, 22 Apr 2005 16:12:57 +0000 Subject: Filenames in the file_statistics*gz files are now quoted the same way as filenames in the metadata file (LF => \n and \ => \\). git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@584 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/CHANGELOG | 2 ++ rdiff-backup/rdiff_backup/statistics.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG index 1aeaeb2..a3eef2a 100644 --- a/rdiff-backup/CHANGELOG +++ b/rdiff-backup/CHANGELOG @@ -4,6 +4,8 @@ New in v0.13.7 (????/??/??) Handle cases of junk uid/gids better on 64bit systems. (Bug report by Nick Bailey) +Filenames in the file_statistics*gz files are now quoted the same way +as filenames in the metadata file (LF => \n and \ => \\). New in v0.13.6 (2005/04/07) --------------------------- diff --git a/rdiff-backup/rdiff_backup/statistics.py b/rdiff-backup/rdiff_backup/statistics.py index c381473..b16fb12 100644 --- a/rdiff-backup/rdiff_backup/statistics.py +++ b/rdiff-backup/rdiff_backup/statistics.py @@ -20,7 +20,7 @@ """Generate and process aggregated backup information""" import re, os, time -import Globals, Time, increment, log, static +import Globals, Time, increment, log, static, metadata class StatsException(Exception): pass @@ -381,6 +381,7 @@ class FileStats: """Update file stats with given information""" if source_rorp: filename = source_rorp.get_indexpath() else: filename = dest_rorp.get_indexpath() + filename = metadata.quote_path(filename) size_list = map(cls.get_size, [source_rorp, dest_rorp, inc]) line = " ".join([filename, str(changed)] + size_list) -- cgit v1.2.1