diff options
| author | Jack Nagel | 2013-04-01 11:22:15 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-04-01 11:22:15 -0500 |
| commit | 26a6acd10d72247074d5c6d552a3149e56ff4e65 (patch) | |
| tree | 5fa427b4f36673676dfb56914d2544ba1e8d518c | |
| parent | c9ed90277445f2946fd31b94290ce24d95ada0d4 (diff) | |
| download | homebrew-26a6acd10d72247074d5c6d552a3149e56ff4e65.tar.bz2 | |
Fix `list --pinned` for non-formula kegs
Fixes #18885.
| -rw-r--r-- | Library/Homebrew/cmd/list.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index 3ce3b18e3..1586ca681 100644 --- a/Library/Homebrew/cmd/list.rb +++ b/Library/Homebrew/cmd/list.rb @@ -58,9 +58,9 @@ private else ARGV.named.map{ |n| HOMEBREW_CELLAR+n }.select{ |pn| pn.exist? } end.select do |d| - Formula.factory(d.basename.to_s).pinned? + (HOMEBREW_LIBRARY/"PinnedKegs"/d.basename.to_s).exist? end.each do |d| - puts "#{d.basename}" + puts d.basename end end end |
