aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/list.rb
diff options
context:
space:
mode:
authorJack Nagel2013-04-01 11:22:15 -0500
committerJack Nagel2013-04-01 11:22:15 -0500
commit2befa0fd5c94e617d99672f75b4747fa8d43f34f (patch)
tree2de796ed0ed867b90b8752985b327fbc56685075 /Library/Homebrew/cmd/list.rb
parent8fbf3a43c39f74e75aae0530c3ef3a9aebe2cd59 (diff)
downloadbrew-2befa0fd5c94e617d99672f75b4747fa8d43f34f.tar.bz2
Fix `list --pinned` for non-formula kegs
Fixes Homebrew/homebrew#18885.
Diffstat (limited to 'Library/Homebrew/cmd/list.rb')
-rw-r--r--Library/Homebrew/cmd/list.rb4
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