A
Ara.T.Howard
i get this running install.rb
ERROR: Failed to migrate the old gems located in...
/dmsp/reference/ruby-1.8.1/lib/ruby/gems/1.8
...to the /dmsp/reference/ruby-1.8.1/lib/ruby/gems/1.8/gems directory
You should move them manually, or your gems DB will be an invalid state
Backtrace follows:
Is a directory - /dmsp/reference/ruby-1.8.1/lib/ruby/gems/1.8/gems/cache
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:409:in `initialize'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:409:in `open'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:409:in `copy_file'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:408:in `open'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:408:in `copy_file'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:459:in `mv'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:446:in `fu_each_src_dest'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:722:in `fu_each_src_dest0'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:722:in `fu_each_src_dest'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:446:in `mv'
install.rb:56:in `install_rb'
install.rb:54:in `glob'
install.rb:54:in `install_rb'
install.rb:100
Successfully built RubyGem
Name: sources
Version: 0.0.1
File: sources-0.0.1.gem
Successfully installed sources version 0.0.1
i only had a few seconds to look at it - but here's possible patch:
--- install.rb.org 2004-06-30 18:55:59.000000000 -0600
+++ install.rb 2004-06-30 18:55:35.000000000 -0600
@@ -52,7 +52,7 @@
begin
Dir.glob(File.join(gem_dir, "*")) do |file|
- next unless file =~ /.*-[0-9]+\..*/
+ next unless test ?f, file and file =~ /.*-[0-9]+\..*/
FileUtils.mv(file, File.join(gem_dir, "gems"))
end
rescue
-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| A flower falls, even though we love it;
| and a weed grows, even though we do not love it.
| --Dogen
===============================================================================
ERROR: Failed to migrate the old gems located in...
/dmsp/reference/ruby-1.8.1/lib/ruby/gems/1.8
...to the /dmsp/reference/ruby-1.8.1/lib/ruby/gems/1.8/gems directory
You should move them manually, or your gems DB will be an invalid state
Backtrace follows:
Is a directory - /dmsp/reference/ruby-1.8.1/lib/ruby/gems/1.8/gems/cache
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:409:in `initialize'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:409:in `open'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:409:in `copy_file'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:408:in `open'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:408:in `copy_file'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:459:in `mv'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:446:in `fu_each_src_dest'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:722:in `fu_each_src_dest0'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:722:in `fu_each_src_dest'
/dmsp/reference/ruby-1.8.1/lib/ruby/1.8/fileutils.rb:446:in `mv'
install.rb:56:in `install_rb'
install.rb:54:in `glob'
install.rb:54:in `install_rb'
install.rb:100
Successfully built RubyGem
Name: sources
Version: 0.0.1
File: sources-0.0.1.gem
Successfully installed sources version 0.0.1
i only had a few seconds to look at it - but here's possible patch:
--- install.rb.org 2004-06-30 18:55:59.000000000 -0600
+++ install.rb 2004-06-30 18:55:35.000000000 -0600
@@ -52,7 +52,7 @@
begin
Dir.glob(File.join(gem_dir, "*")) do |file|
- next unless file =~ /.*-[0-9]+\..*/
+ next unless test ?f, file and file =~ /.*-[0-9]+\..*/
FileUtils.mv(file, File.join(gem_dir, "gems"))
end
rescue
-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| A flower falls, even though we love it;
| and a weed grows, even though we do not love it.
| --Dogen
===============================================================================