From owner-svn-ports-head@FreeBSD.ORG Sat Jan 25 20:00:34 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0E614431; Sat, 25 Jan 2014 20:00:34 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EE2DA10C7; Sat, 25 Jan 2014 20:00:33 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s0PK0XSS072654; Sat, 25 Jan 2014 20:00:33 GMT (envelope-from swills@svn.freebsd.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s0PK0Xkv072652; Sat, 25 Jan 2014 20:00:33 GMT (envelope-from swills@svn.freebsd.org) Message-Id: <201401252000.s0PK0Xkv072652@svn.freebsd.org> From: Steve Wills Date: Sat, 25 Jan 2014 20:00:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r341085 - in head/sysutils/pdumpfs: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jan 2014 20:00:34 -0000 Author: swills Date: Sat Jan 25 20:00:33 2014 New Revision: 341085 URL: http://svnweb.freebsd.org/changeset/ports/341085 QAT: https://qat.redports.org/buildarchive/r341085/ Log: - Fix with Ruby 1.9 PR: ports/179611 Submitted by: Tsurutani Naoki Added: head/sysutils/pdumpfs/files/ head/sysutils/pdumpfs/files/extrapatch-pdumpfs.in (contents, props changed) Modified: head/sysutils/pdumpfs/Makefile Modified: head/sysutils/pdumpfs/Makefile ============================================================================== --- head/sysutils/pdumpfs/Makefile Sat Jan 25 19:45:46 2014 (r341084) +++ head/sysutils/pdumpfs/Makefile Sat Jan 25 20:00:33 2014 (r341085) @@ -3,7 +3,7 @@ PORTNAME= pdumpfs PORTVERSION= 1.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils MASTER_SITES= http://0xcc.net/pdumpfs/ Added: head/sysutils/pdumpfs/files/extrapatch-pdumpfs.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/pdumpfs/files/extrapatch-pdumpfs.in Sat Jan 25 20:00:33 2014 (r341085) @@ -0,0 +1,91 @@ +--- pdumpfs.in.orig 2004-12-21 11:43:12.000000000 +0900 ++++ pdumpfs.in 2013-06-22 08:58:34.000000000 +0900 +@@ -48,21 +48,21 @@ + # + + require 'find' +-require 'ftools' ++require 'fileutils' + require 'getoptlong' + require 'date' + + class File + def self.real_file? (path) +- File.file?(path) and not File.symlink?(path) ++ FileTest.file?(path) and not FileTest.symlink?(path) + end + + def self.anything_exist? (path) +- File.exist?(path) or File.symlink?(path) ++ FileTest.exist?(path) or FileTest.symlink?(path) + end + + def self.real_directory? (path) +- File.directory?(path) and not File.symlink?(path) ++ FileTest.directory?(path) and not FileTest.symlink?(path) + end + + def self.force_symlink (src, dest) +@@ -79,7 +79,7 @@ + end + + def self.readable_file? (path) +- File.file?(path) and File.readable?(path) ++ FileTest.file?(path) and FileTest.readable?(path) + end + + def self.split_all (path) +@@ -129,7 +129,7 @@ + GetVolumeInformation = Win32API.new("kernel32", "GetVolumeInformation", + "PPLPPPPL", "I") + def get_filesystem_type (path) +- return nil unless(File.exist?(path)) ++ return nil unless(FileTest.exist?(path)) + + drive = File.expand_path(path)[0..2] + buff = "\0" * 1024 +@@ -868,7 +868,7 @@ + today = File.join(dest, datedir(start_time), base) + + File.umask(0077) +- File.mkpath(today) unless @dry_run ++ FileUtils.mkpath(today) unless @dry_run + if latest + update_snapshot(src, latest, today) + else +@@ -1018,7 +1018,7 @@ + + case type + when "directory" +- File.mkpath(today) ++ FileUtils.mkpath(today) + when "unchanged" + File.force_link(latest, today) + when "updated" +@@ -1052,7 +1052,7 @@ + + Find.find(src) do |s| # path of the source file + if @matcher.exclude?(s) +- if File.lstat(s).directory? then Find.prune() else next end ++ if FileTest.directory?(s) then Find.prune() else next end + end + r = make_relative_path(s, src) + l = File.join(latest, r) # path of the latest snapshot +@@ -1077,7 +1077,7 @@ + + Find.find(src) do |s| + if @matcher.exclude?(s) +- if File.lstat(s).directory? then Find.prune() else next end ++ if FileTest.directory?(s) then Find.prune() else next end + end + r = make_relative_path(s, src) + t = File.join(dest, r) +@@ -1089,7 +1089,7 @@ + + case type + when "directory" +- File.mkpath(t) ++ FileUtils.mkpath(t) + when "new_file" + copy(s, t) + when "symlink"