diff options
author | root <root@rshg054.dnsready.net> | 2013-08-11 01:21:34 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-11 01:21:34 -0700 |
commit | 18a41d682d6e91e0d28fce23eb75292f477bd620 (patch) | |
tree | bce8f660d7d0b6541cadbc49bf1bac2434e4c0c6 /community/duplicity/duplicity-0.6.17-fix-memleak.patch | |
parent | 0ade1da67addf154d93c6a6399b0a3d5a18a3336 (diff) |
Sun Aug 11 01:21:31 PDT 2013
Diffstat (limited to 'community/duplicity/duplicity-0.6.17-fix-memleak.patch')
-rw-r--r-- | community/duplicity/duplicity-0.6.17-fix-memleak.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/community/duplicity/duplicity-0.6.17-fix-memleak.patch b/community/duplicity/duplicity-0.6.17-fix-memleak.patch deleted file mode 100644 index 1c4c8daff..000000000 --- a/community/duplicity/duplicity-0.6.17-fix-memleak.patch +++ /dev/null @@ -1,29 +0,0 @@ -=== modified file 'duplicity/util.py' ---- duplicity/util.py 2011-08-23 18:14:17 +0000 -+++ duplicity/util.py 2012-01-20 21:50:01 +0000 -@@ -71,6 +71,10 @@ - else: - raise - -+class BlackHoleList(list): -+ def append(self, x): -+ pass -+ - class FakeTarFile: - debug = 0 - def __iter__(self): -@@ -83,7 +87,12 @@ - # yet. So we want to ignore ReadError exceptions, which are used to signal - # this. - try: -- return tarfile.TarFile("arbitrary", mode, fp) -+ tf = tarfile.TarFile("arbitrary", mode, fp) -+ # Now we cause TarFile to not cache TarInfo objects. It would end up -+ # consuming a lot of memory over the lifetime of our long-lasting -+ # signature files otherwise. -+ tf.members = BlackHoleList() -+ return tf - except tarfile.ReadError: - return FakeTarFile() - - |