diff options
| author | Jack Nagel | 2012-01-05 11:57:24 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-01-05 12:03:04 -0600 |
| commit | d274d37263e99193567606ac2b7929bc64dba091 (patch) | |
| tree | bf41b26c1dffce9c7419d20b5038f71f3488cd57 | |
| parent | 97fa28248d70e3b2b51d270ec3f4dcb7aca57f02 (diff) | |
| download | brew-d274d37263e99193567606ac2b7929bc64dba091.tar.bz2 | |
Tab: handle non-core kegs without receipts
Passing Formula.factory the name of a keg that belongs to a non-core
formula will cause an error to be raised; we don't really care, so just
fake a totally empty install receipt in this case.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Homebrew/tab.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index ec80b0204..3dd33302f 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -33,7 +33,11 @@ class Tab < OpenStruct if path.exist? self.from_file path else - self.dummy_tab Formula.factory(keg.parent.basename) + begin + self.dummy_tab Formula.factory(keg.parent.basename) + rescue FormulaUnavailableError + Tab.new :used_options => [], :unused_options => [] + end end end |
