The installer again -- further tests.

Hugh Sasse Staff Elec Eng hgs at dmu.ac.uk
Wed Oct 27 08:45:40 EDT 2004


Followup to that: with this patch

--- /home/hgs/ruby/vim-ruby-2004.09.20/bin/vim-ruby-install.rb.orig	2004-10-27 13:18:10.948557000 +0100
+++ /home/hgs/ruby/vim-ruby-2004.09.20/bin/vim-ruby-install.rb	2004-10-27 13:41:44.670996000 +0100
@@ -231,6 +231,9 @@
      # will be copied.  Both are strings.
    def initialize(source, target)
      @source_dir = source
+    unless FileTest.directory?(@source_dir)
+      raise "Automatically determined source directory ('#{@source_dir}') doesn't exist"
+    end
      unless FileTest.directory?(target)
        raise "Chosen target directory ('#{target}') doesn't exist"
      end
@@ -366,6 +369,7 @@
  op.parse!(ARGV)

  source_dir = Env.determine_source_directory
+if source_dir.nil? then raise "source_dir is Nil"; end
  target_dir = $options[:target_dir] || TargetDirectory.finder.find_target_directory
  VimRubyInstaller.new(source_dir, target_dir).install


I now get

brains# ruby
/home/hgs/ruby/vim-ruby-2004.09.20/bin/vim-ruby-install.rb
/home/hgs/ruby/vim-ruby-2004.09.20/bin/vim-ruby-install.rb:372:
source_dir is Nil (RuntimeError)
brains#



More information about the vim-ruby-devel mailing list