duplicity: 0.7.19 -> 0.8.10

Update, port to Python 3 and clean up.

Co-Authored-By: Jan Tojnar <jtojnar@gmail.com>
Co-Authored-By: Frederik Rietdijk <fridh@fridh.nl>
This commit is contained in:
Frederik Rietdijk
2020-02-10 19:01:17 +01:00
committed by Jan Tojnar
co-authored by Jan Tojnar
parent a21c2fa3ea
commit b5126937b4
4 changed files with 113 additions and 51 deletions
@@ -4,15 +4,15 @@
https://launchpad.net/bugs/929067
"""
- if platform.system().startswith('Linux'):
- tarcmd = "tar"
- elif platform.system().startswith('Darwin'):
- tarcmd = "gtar"
- elif platform.system().endswith('BSD'):
- tarcmd = "gtar"
- if platform.system().startswith(u'Linux'):
- tarcmd = u"tar"
- elif platform.system().startswith(u'Darwin'):
- tarcmd = u"gtar"
- elif platform.system().endswith(u'BSD'):
- tarcmd = u"gtar"
- else:
- raise Exception("Platform %s not supported by tar/gtar." % platform.platform())
+ tarcmd = "tar"
- raise Exception(u"Platform %s not supported by tar/gtar." % platform.platform())
+ tarcmd = u"tar"
# Intial normal backup
self.backup("full", "testfiles/blocktartest")