ports/databases/barman/patches/patch-barman_fs_py

21 lines
612 B
Text
Raw Normal View History

2023-10-11 18:19:00 +00:00
Index: barman/fs.py
--- barman/fs.py.orig
+++ barman/fs.py
@@ -19,6 +19,7 @@
import logging
import re
import shutil
+import sys
from abc import ABCMeta, abstractmethod
from barman import output
@@ -147,7 +148,7 @@ class UnixLocalCommand(object):
if not self.exists(path):
raise FsOperationFailed("Following path does not exist: %s" % path)
args = ["-c", "%a", path]
- if self.is_osx():
+ if self.is_osx() or sys.platform.startswith("openbsd"):
print("is osx")
args = ["-f", "%Lp", path]
cmd_ret = self.cmd("stat", args=args)