public
Description: A bleeding-edge package manager.
Homepage: http://roastbeef.rubyforge.org
Clone URL: git://github.com/technomancy/roast-beef.git
handles package not found correctly
technomancy (author)
Wed Mar 26 14:23:58 -0700 2008
commit  3a09133906dbaf3c0cc5d9df8f541a826544a0da
tree    cb93a5ebcce3355d6f281c924d96288f06fb4100
parent  f955823f829b0c72dafd47123976f1dd1562e73c
...
10
11
12
 
 
 
13
...
10
11
12
13
14
15
16
0
@@ -10,4 +10,7 @@ rescue NoMethodError
0
   puts "Unrecognized command #{ARGV.first}.\n\n"
0
   puts RoastBeef::USAGE
0
   exit 1
0
+rescue => e
0
+ puts e.to_s
0
+ exit 1
0
 end
...
59
60
61
 
62
63
64
...
59
60
61
62
63
64
65
0
@@ -59,6 +59,7 @@ should do control-c to cancel.") || STDIN.gets if unremovable?
0
     end
0
 
0
     def self.find(name, metadata = RoastBeef.listing[name])
0
+ raise "Package #{name} not found." if metadata.nil?
0
       require "scms/#{metadata['scm']}_package"
0
       PACKAGE_TYPES[metadata['scm']].new(name, metadata)
0
     end

Comments

    No one has commented yet.