1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Alexey Salmin <alexey.salmin@gmail.com>
Date: Thu, 26 Nov 2015 14:32:16 -0800
Subject: fix-tar-errors
A bug that treats tar warnings as errors has been fixed.
Bug: http://bugzilla.backup-manager.org/show_bug.cgi?id=219
Bug-Debian: http://bugs.debian.org/532976
---
lib/backup-methods.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/backup-methods.sh b/lib/backup-methods.sh
index 8aa9d4c..c5a76f5 100644
--- a/lib/backup-methods.sh
+++ b/lib/backup-methods.sh
@@ -647,7 +647,12 @@ function build_clear_archive
# the common commandline
*)
- BM__CURRENT_COMMAND="generic"
+ # tar, tar.gz, tar.bz2, tar.whatever
+ if [[ "${BM_TARBALL_FILETYPE:0:3}" == "tar" ]] ; then
+ BM__CURRENT_COMMAND="tar"
+ else
+ BM__CURRENT_COMMAND="generic"
+ fi
debug "$command $file_to_create \"$target\" > $logfile 2>&1"
tail_logfile "$logfile"
debug "$command $file_to_create \"$target\""
|