From 23a905352884b1177ecd90c730ca67bc74e882d2 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 28 May 2012 04:08:45 -0400 Subject: v3: hub, "requires", fix --- data/doc/sisu/CHANGELOG_v3 | 2 ++ lib/sisu/v3/hub.rb | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/data/doc/sisu/CHANGELOG_v3 b/data/doc/sisu/CHANGELOG_v3 index 7fd5f885..05bc8e83 100644 --- a/data/doc/sisu/CHANGELOG_v3 +++ b/data/doc/sisu/CHANGELOG_v3 @@ -21,6 +21,8 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_3.2.10.orig.tar.xz sisu_3.2.10-1.dsc sisu_3.2.10-1.debian.tar.gz +* v3: hub, "requires", fix + * v3: code headers, mostly copyright %% 3.2.9.orig.tar.xz (2012-05-19:20/6) diff --git a/lib/sisu/v3/hub.rb b/lib/sisu/v3/hub.rb index 67f6913a..ee0b492a 100644 --- a/lib/sisu/v3/hub.rb +++ b/lib/sisu/v3/hub.rb @@ -205,6 +205,9 @@ p "#{__LINE__}:#{__FILE__}" if @opt.act[:maintenance][:set] ==:on @msg,@msgs='',nil @tell=lambda { SiSU_Screen::Ansi.new(@opt.cmd,@msg,"#{@msgs.inspect if @msgs}") } end + def requires(req) + require_relative req + end def actions if @opt.act[:profile][:set]==:on require 'profile' @@ -321,9 +324,6 @@ p "#{__LINE__}:#{__FILE__}" if @opt.act[:maintenance][:set] ==:on retry unless @retry_count > 1 ensure end - end - def requires(req) - require_relative req end def each_file_loop_options @opt.files.each_with_index do |fno,i| -- cgit v1.2.3