~ubuntu-branches/ubuntu/natty/duplicity/natty-updates

« back to all changes in this revision

Viewing changes to debian/patches/02bzip2-compress

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-11-11 13:32:07 UTC
  • mfrom: (2.1.3 feisty)
  • Revision ID: james.westby@ubuntu.com-20061111133207-9gizpeda242fwmtr
Tags: 0.4.2-10.1
Switch back to python 2.4, as python-central can apparently no longer cope
with 2.3, and 2.4 seems to work ok now; patch from Joey Hess.
(Closes: #396158)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## bzip2-compress patch by Mathias Wagner <mathias.wagner@physik.tu-darmstadt.de>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: bzip2 compress backups
 
6
 
 
7
@DPATCH@
 
8
--- orig/src/gpg.py     2006-05-15 14:06:05.000000000 -0500
 
9
+++ mod/src/gpg.py      2006-05-15 13:37:09.809960152 -0500
 
10
@@ -165,6 +165,8 @@ def GPGWriteFile(block_iter, filename, p
 
11
                gnupg = GnuPGInterface.GnuPG()
 
12
                gnupg.options.meta_interactive = 0
 
13
                gnupg.options.extra_args.append('--no-secmem-warning')
 
14
+               gnupg.options.extra_args.append('--compression-algo=bzip2')
 
15
+               gnupg.options.extra_args.append('--bzip2-compress-level=9')
 
16
                gnupg.passphrase = passphrase
 
17
                if profile.sign_key: gnupg.options.default_key = profile.sign_key
 
18
                if log.verbosity < 5: # suppress gpg log messages if low verbosity