File: fix-tar-errors.patch

package info (click to toggle)
backup-manager 0.7.14-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 1,656 kB
  • sloc: sh: 4,041; perl: 1,176; makefile: 215
file content (30 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download | duplicates (4)
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\""