aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2012-01-28 01:38:44 +0800
committermiwi <miwi@FreeBSD.org>2012-01-28 01:38:44 +0800
commite23ecd2a48ae336b62a727e4dedd32ce702e4e89 (patch)
tree254ea101554109ac901b771795205d396201a54b
parentad70ff08050df64babdda81b8f67a1fe82534f27 (diff)
downloadfreebsd-ports-gnome-e23ecd2a48ae336b62a727e4dedd32ce702e4e89.tar.gz
freebsd-ports-gnome-e23ecd2a48ae336b62a727e4dedd32ce702e4e89.tar.zst
freebsd-ports-gnome-e23ecd2a48ae336b62a727e4dedd32ce702e4e89.zip
- Unbreak for Ruby 1.9
PR: 162763 Submitted by: Jan Beich <jbeich@tormail.net> Approved by: maintainer timeout
-rw-r--r--sysutils/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt b/sysutils/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt
index 44406250f919..382543b79b93 100644
--- a/sysutils/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt
+++ b/sysutils/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt
@@ -12,3 +12,21 @@
end
private
+@@ -175,7 +179,7 @@ private
+
+ end
+
+-class Config
++class ZConfig
+ attr_reader :snapshot_prefix, :filesystems, :pools
+
+ def initialize(value)
+@@ -194,7 +198,7 @@ class Config
+
+ config_yaml = File.open(CONFIG_FILE_NAME).read(CONFIG_SIZE_MAX)
+ die "Config file too long" if config_yaml.nil?
+-config = Config.new(YAML::load(config_yaml))
++config = ZConfig.new(YAML::load(config_yaml))
+
+ now_minutes = Time.now.to_i / 60
+