aboutsummaryrefslogtreecommitdiff
path: root/sysutils/pdumpfs-rsync
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2006-05-28 16:02:40 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2006-05-28 16:02:40 +0000
commitfc60875c3663c81ae323ad90a2bb822424dd09cc (patch)
tree8217845a9951fe574ec8bea9fba7d56f24734741 /sysutils/pdumpfs-rsync
parentf7eceb1d35047313f89e0583c4d79b83f1169911 (diff)
downloadports-fc60875c3663c81ae323ad90a2bb822424dd09cc.tar.gz
ports-fc60875c3663c81ae323ad90a2bb822424dd09cc.zip
Notes
Diffstat (limited to 'sysutils/pdumpfs-rsync')
-rw-r--r--sysutils/pdumpfs-rsync/files/patch-pdumpfs-rsync21
1 files changed, 17 insertions, 4 deletions
diff --git a/sysutils/pdumpfs-rsync/files/patch-pdumpfs-rsync b/sysutils/pdumpfs-rsync/files/patch-pdumpfs-rsync
index bae6b030c3a2..1ca3b96ae79c 100644
--- a/sysutils/pdumpfs-rsync/files/patch-pdumpfs-rsync
+++ b/sysutils/pdumpfs-rsync/files/patch-pdumpfs-rsync
@@ -1,5 +1,5 @@
---- pdumpfs-rsync.orig Mon Dec 26 12:31:35 2005
-+++ pdumpfs-rsync Mon Dec 26 12:33:21 2005
+--- pdumpfs-rsync.orig Mon May 29 00:45:21 2006
++++ pdumpfs-rsync Mon May 29 00:50:28 2006
@@ -15,7 +15,7 @@
# the GNU General Public License version 2.
#
@@ -9,6 +9,15 @@
require 'ftools'
require 'getoptlong'
+@@ -110,7 +110,7 @@
+
+ def main
+ src, dest, base, matcher, rsync_opts, opts = parse_options
+- rsync_array = ['/usr/bin/rsync',
++ rsync_array = ['/usr/local/bin/rsync',
+ '-avH',
+ '--delete',
+ '--delete-excluded',
@@ -128,8 +128,10 @@
end
end
@@ -22,12 +31,16 @@
rsync_array = rsync_array + rsync_opts
rsync_array.push(ARGV[0].sub(%r!/+$!, '') + '/')
rsync_array.push(src + '/')
-@@ -141,7 +143,7 @@
+@@ -141,7 +143,11 @@
if ( $? >> 8 != 0 )
STDERR.print "WARNING: rsync failed: #{ARGV[0]}; exit value: #{$? >> 8}\n"
end
- update_snapshot(src, src, today, matcher)
-+ pdumpfs.update_snapshot(src, src, today, matcher)
++ if latest
++ pdumpfs.update_snapshot(src, latest, today)
++ else
++ pdumpfs.recursive_copy(src, today)
++ end
else
STDERR.print "rsync failed: #{ARGV[0]}; exit value: #{$? >> 8}\n"
exit $? >> 8