diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-07-27 12:30:56 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-07-27 12:36:02 +0100 |
commit | b2558a7f3e48600636fd84a573a1f08c8eea7b04 (patch) | |
tree | b5ff8565b0e0dedd88623d90a580520afc3b1190 /app-backup/borgmatic/files | |
parent | dev-python/flexmock: keyword 0.10.4 for ~riscv (diff) | |
download | gentoo-b2558a7f3e48600636fd84a573a1f08c8eea7b04.tar.gz gentoo-b2558a7f3e48600636fd84a573a1f08c8eea7b04.tar.bz2 gentoo-b2558a7f3e48600636fd84a573a1f08c8eea7b04.zip |
app-backup/borgmatic: add 1.5.16, drop 1.5.13
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-backup/borgmatic/files')
-rw-r--r-- | app-backup/borgmatic/files/borgmatic-1.5.16-flexmock_write_args.patch | 19 | ||||
-rw-r--r-- | app-backup/borgmatic/files/borgmatic-1.5.16-systemd_service_bin_path.patch | 8 |
2 files changed, 27 insertions, 0 deletions
diff --git a/app-backup/borgmatic/files/borgmatic-1.5.16-flexmock_write_args.patch b/app-backup/borgmatic/files/borgmatic-1.5.16-flexmock_write_args.patch new file mode 100644 index 000000000000..32937adadba0 --- /dev/null +++ b/app-backup/borgmatic/files/borgmatic-1.5.16-flexmock_write_args.patch @@ -0,0 +1,19 @@ +Apparently in the flexmock universe, sys.stdout.write() takes two +arguments rather than one. As of late July 2021, upstream hasn't said +a word of comment on this; see +https://github.com/flexmock/flexmock/issues/37 + +--- a/tests/unit/commands/test_borgmatic.py ++++ b/tests/unit/commands/test_borgmatic.py +@@ -448,7 +448,10 @@ + ['baz'] + ) + stdout = flexmock() +- stdout.should_receive('write').with_args('["foo", "bar", "baz"]').once() ++ try: ++ stdout.should_receive('write').with_args('["foo", "bar", "baz"]').once() ++ except flexmock.MethodSignatureError: ++ stdout.should_receive('write').with_args('["foo", "bar", "baz"]', None).once() + flexmock(module.sys).stdout = stdout + arguments = {} + diff --git a/app-backup/borgmatic/files/borgmatic-1.5.16-systemd_service_bin_path.patch b/app-backup/borgmatic/files/borgmatic-1.5.16-systemd_service_bin_path.patch new file mode 100644 index 000000000000..26298625fc1a --- /dev/null +++ b/app-backup/borgmatic/files/borgmatic-1.5.16-systemd_service_bin_path.patch @@ -0,0 +1,8 @@ +--- a/sample/systemd/borgmatic.service ++++ b/sample/systemd/borgmatic.service +@@ -57,4 +57,4 @@ + # Delay start to prevent backups running during boot. Note that systemd-inhibit requires dbus and + # dbus-user-session to be installed. + ExecStartPre=sleep 1m +-ExecStart=systemd-inhibit --who="borgmatic" --why="Prevent interrupting scheduled backup" /root/.local/bin/borgmatic --verbosity -1 --syslog-verbosity 1 ++ExecStart=systemd-inhibit --who="borgmatic" --why="Prevent interrupting scheduled backup" /usr/bin/borgmatic --verbosity -1 --syslog-verbosity 1 |