mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
42 lines
1001 B
Diff
42 lines
1001 B
Diff
diff --git pdumpfs.in pdumpfs.in
|
|
index c9ffe66..320eafe 100644
|
|
--- pdumpfs.in
|
|
+++ pdumpfs.in
|
|
@@ -48,7 +48,8 @@
|
|
#
|
|
|
|
require 'find'
|
|
-require 'ftools'
|
|
+#require 'ftools' # deprecated at 1.9, use fileutils
|
|
+require 'fileutils'
|
|
require 'getoptlong'
|
|
require 'date'
|
|
|
|
@@ -868,7 +869,7 @@ module Pdumpfs
|
|
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 +1019,7 @@ module Pdumpfs
|
|
|
|
case type
|
|
when "directory"
|
|
- File.mkpath(today)
|
|
+ FileUtils.mkpath(today)
|
|
when "unchanged"
|
|
File.force_link(latest, today)
|
|
when "updated"
|
|
@@ -1089,7 +1090,7 @@ module Pdumpfs
|
|
|
|
case type
|
|
when "directory"
|
|
- File.mkpath(t)
|
|
+ FileUtils.mkpath(t)
|
|
when "new_file"
|
|
copy(s, t)
|
|
when "symlink"
|