pdumpfs-rsync updated
pdumpfs has been updated but corresponding changes are not made to pdumpfs-rsync so that it doesn't work. PR: ports/90880 Submitted by: Yoshihiro Ota <ota@j.email.ne.jp>
This commit is contained in:
parent
2dcafdb995
commit
afc1b99921
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=152063
2 changed files with 25 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= pdumpfs-rsync
|
||||
PORTVERSION= 0.8.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils net
|
||||
MASTER_SITES= http://tach.arege.net/software/pdumpfs-rsync/
|
||||
DISTFILES= ${PROG}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
--- pdumpfs-rsync.orig Sat May 29 03:00:00 2004
|
||||
+++ pdumpfs-rsync Sat May 29 03:01:57 2004
|
||||
--- pdumpfs-rsync.orig Mon Dec 26 12:31:35 2005
|
||||
+++ pdumpfs-rsync Mon Dec 26 12:33:21 2005
|
||||
@@ -15,7 +15,7 @@
|
||||
# the GNU General Public License version 2.
|
||||
#
|
||||
|
@ -9,3 +9,25 @@
|
|||
require 'ftools'
|
||||
require 'getoptlong'
|
||||
|
||||
@@ -128,8 +128,10 @@
|
||||
end
|
||||
end
|
||||
|
||||
- latest = latest_snapshot(src, dest, base)
|
||||
- today = File.join(dest, datedir(Date.today), base)
|
||||
+ start_time = Time.now
|
||||
+ pdumpfs = Pdumpfs::Pdumpfs.new(opts)
|
||||
+ latest = pdumpfs.latest_snapshot(start_time, src, dest, base)
|
||||
+ today = File.join(dest, pdumpfs.datedir(Date.today), base)
|
||||
rsync_array = rsync_array + rsync_opts
|
||||
rsync_array.push(ARGV[0].sub(%r!/+$!, '') + '/')
|
||||
rsync_array.push(src + '/')
|
||||
@@ -141,7 +143,7 @@
|
||||
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)
|
||||
else
|
||||
STDERR.print "rsync failed: #{ARGV[0]}; exit value: #{$? >> 8}\n"
|
||||
exit $? >> 8
|
||||
|
|
Loading…
Reference in a new issue