diff options
author | fhajny <fhajny> | 2014-11-04 12:56:14 +0000 |
---|---|---|
committer | fhajny <fhajny> | 2014-11-04 12:56:14 +0000 |
commit | ec15eb1f8fd12b00d83f0120bac7dda47c798229 (patch) | |
tree | 8d74c96afc0fd9b5f4d3430933c2a1d829c2c988 /databases/py-barman/patches | |
parent | 8277e9ad875cce87fbd9fe74df884120001f8ceb (diff) | |
download | pkgsrc-ec15eb1f8fd12b00d83f0120bac7dda47c798229.tar.gz |
Import Barman as databases/py-barman.
Barman (Backup and Recovery Manager) is an open-source administration
tool for disaster recovery of PostgreSQL servers written in Python.
Diffstat (limited to 'databases/py-barman/patches')
-rw-r--r-- | databases/py-barman/patches/patch-barman_backup.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/databases/py-barman/patches/patch-barman_backup.py b/databases/py-barman/patches/patch-barman_backup.py new file mode 100644 index 00000000000..82c38bcb600 --- /dev/null +++ b/databases/py-barman/patches/patch-barman_backup.py @@ -0,0 +1,23 @@ +$NetBSD: patch-barman_backup.py,v 1.1 2014/11/04 12:56:14 fhajny Exp $ + +Make portable for non-glibc platforms too. +--- barman/backup.py.orig 2014-08-14 16:10:43.000000000 +0000 ++++ barman/backup.py +@@ -956,7 +956,7 @@ class BackupManager(object): + backup_size = 0 + for dirpath, _, filenames in os.walk(backup_dest): + # execute fsync() on the containing directory +- dir_fd = os.open(dirpath, os.O_DIRECTORY) ++ dir_fd = os.open(dirpath, os.O_RDONLY) + os.fsync(dir_fd) + os.close(dir_fd) + # execute fsync() on all the contained files +@@ -1166,7 +1166,7 @@ class BackupManager(object): + shutil.move(filename, destfile) + + # execute fsync() on the archived WAL containing directory +- dir_fd = os.open(os.path.dirname(destfile), os.O_DIRECTORY) ++ dir_fd = os.open(os.path.dirname(destfile), os.O_RDONLY) + os.fsync(dir_fd) + os.close(dir_fd) + # execute fsync() on the archived WAL file |