openbsd-ports/sysutils/flyback/patches/patch-backup_backend_py

25 lines
1.2 KiB
Plaintext

$OpenBSD: patch-backup_backend_py,v 1.3 2008/09/30 08:15:06 ajacoutot Exp $
--- backup_backend.py.orig Thu Nov 15 07:22:16 2007
+++ backup_backend.py Tue Sep 30 10:01:30 2008
@@ -229,7 +229,7 @@ class backup:
if latest_backup_dir:
last_backup = self.parent_backup_dir +'/'+ latest_backup_dir.strftime(BACKUP_DIR_DATE_FORMAT)
- self.run_cmd_output_gui("cp -al '%s' '%s'" % (last_backup, new_backup))
+ self.run_cmd_output_gui("gcp -al '%s' '%s'" % (last_backup, new_backup))
self.run_cmd_output_gui("chmod u+w '%s'" % new_backup)
for dir in self.included_dirs:
@@ -290,9 +290,9 @@ class backup:
file = src.rstrip('/') +'/'+ local_file
print 'file', file
if os.path.isdir(file):
- cmd = 'cp -vR "%s" "%s"' % (file, dest)
+ cmd = 'gcp -vR "%s" "%s"' % (file, dest)
else:
- cmd = 'cp -v "%s" "%s"' % (file, dest)
+ cmd = 'gcp -v "%s" "%s"' % (file, dest)
file_pairs = self.run_cmd_output_gui(cmd)
# for file_pair in file_pairs:
# to_f = file_pair.split(' -> ')[1].strip("'`\n")