wok-next view zonecheck/stuff/patches/80_no-rubygems.patch @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | |
children |
line source
1 Description: Do not require rubygems.
2 Author: Sébastien Delafond <seb@debian.org>
4 Index: zonecheck-3.0.0/zc/zc.rb
5 ===================================================================
6 --- zonecheck-3.0.0.orig/zc/zc.rb 2010-06-24 11:40:08.000000000 +0200
7 +++ zonecheck-3.0.0/zc/zc.rb 2010-06-24 11:40:18.000000000 +0200
8 @@ -207,22 +207,7 @@
9 $dbg.level = ENV['ZC_DEBUG'] if ENV['ZC_DEBUG']
12 -begin
13 - require 'rubygems'
14 -rescue LoadError => e
15 - $dbg.msg(ZoneCheck::DBG::INIT, "Unable to require rubygems (#{e})")
16 - $stderr.puts "ERROR: You have to install rubygems and Dnsruby in order to execute ZoneCheck"
17 - exit EXIT_ERROR
18 -end
19 -
20 -# External libraries
21 -begin
22 - require 'dnsruby'
23 -rescue LoadError => e
24 - $dbg.msg(ZoneCheck::DBG::INIT, "Unable to require dnsruby (#{e})")
25 - $stderr.puts "ERROR: You have to install Dnsruby in order to execute ZoneCheck"
26 - exit EXIT_ERROR
27 -end
28 +require 'dnsruby'
30 if Dnsruby.version < 1.47
31 $dbg.msg(ZoneCheck::DBG::INIT, "Unable to require dnsruby (#{e})")