duplicity: update to 0.7.15.

This commit is contained in:
maxice8 2017-11-13 16:24:38 -02:00 committed by Leаh Neukirchen
parent e08deef181
commit e5038c4642
2 changed files with 40 additions and 2 deletions

View file

@ -0,0 +1,34 @@
--- testing/unit/test_statistics.py
+++ testing/unit/test_statistics.py
@@ -59,31 +59,6 @@ class StatsObjTest(UnitTestCase):
s1 = StatsDeltaProcess()
assert s1.get_stat('SourceFiles') == 0
- def test_get_stats_string(self):
- """Test conversion of stat object into string"""
- s = StatsObj()
- stats_string = s.get_stats_string()
- assert stats_string == "", stats_string
-
- self.set_obj(s)
- stats_string = s.get_stats_string()
- assert stats_string == """\
-StartTime 13.00 (Wed Dec 31 18:00:13 1969)
-EndTime 14.00 (Wed Dec 31 18:00:14 1969)
-ElapsedTime 1.00 (1 second)
-SourceFiles 1
-SourceFileSize 2 (2 bytes)
-NewFiles 3
-NewFileSize 4 (4 bytes)
-DeletedFiles 5
-ChangedFiles 7
-ChangedFileSize 8 (8 bytes)
-ChangedDeltaSize 9 (9 bytes)
-DeltaEntries 10
-RawDeltaSize 11 (11 bytes)
-TotalDestinationSizeChange 12 (12 bytes)
-""", "'%s'" % stats_string
-
def test_line_string(self):
"""Test conversion to a single line"""
s = StatsObj()

View file

@ -1,10 +1,11 @@
# Template file for 'duplicity' # Template file for 'duplicity'
pkgname=duplicity pkgname=duplicity
version=0.7.14 version=0.7.15
revision=1 revision=1
build_style=python2-module build_style=python2-module
hostmakedepends="python-setuptools" hostmakedepends="python-setuptools"
makedepends="python-devel librsync-devel" makedepends="python-devel librsync-devel"
checkdepends="python-pexpect python-mock python-fasteners gnupg par2cmdline"
depends="python-fasteners" depends="python-fasteners"
pycompile_module="duplicity" pycompile_module="duplicity"
short_desc="Encrypted bandwidth-efficient backup using the rsync algorithm" short_desc="Encrypted bandwidth-efficient backup using the rsync algorithm"
@ -12,11 +13,14 @@ homepage="http://duplicity.nongnu.org/"
license="GPL-2" license="GPL-2"
maintainer="Leah Neukirchen <leah@vuxu.org>" maintainer="Leah Neukirchen <leah@vuxu.org>"
distfiles="http://code.launchpad.net/duplicity/${version%.*}-series/${version}/+download/duplicity-${version}.tar.gz" distfiles="http://code.launchpad.net/duplicity/${version%.*}-series/${version}/+download/duplicity-${version}.tar.gz"
checksum=7a3eb74a2a36b004b10add2970b37cfbac0bd693d79513e6311c8e4b8c3dd73e checksum=50bf7d14413284ecb036146ab9ba0e271937f2fa7826f8c8300b2965eb450a6c
post_extract() { post_extract() {
chmod 0644 bin/*.1 chmod 0644 bin/*.1
} }
do_check() {
PYTHONPATH="${PWD}/build/lib.linux-${XBPS_TARGET_MACHINE}-2.7" python2 setup.py test
}
post_install() { post_install() {
# drop doc # drop doc
rm -rf ${DESTDIR}/usr/share/doc rm -rf ${DESTDIR}/usr/share/doc