tab: use installed_prefixes

This commit is contained in:
Xu Cheng 2015-11-29 15:40:45 +08:00
parent fade4af050
commit f442510787

View File

@ -101,7 +101,7 @@ class Tab < OpenStruct
paths << f.linked_keg.resolved_path paths << f.linked_keg.resolved_path
end end
if f.rack.directory? && (dirs = f.rack.subdirs).length == 1 if (dirs = f.installed_prefixes).length == 1
paths << dirs.first paths << dirs.first
end end