parent
268fa841de
commit
1ed7108052
@ -100,7 +100,7 @@ module Homebrew
|
|||||||
else # --versions without --pinned
|
else # --versions without --pinned
|
||||||
names.each do |d|
|
names.each do |d|
|
||||||
versions = d.subdirs.map { |pn| pn.basename.to_s }
|
versions = d.subdirs.map { |pn| pn.basename.to_s }
|
||||||
next if ARGV.include?("--multiple") && versions.count < 2
|
next if ARGV.include?("--multiple") && versions.length < 2
|
||||||
puts "#{d.basename} #{versions*" "}"
|
puts "#{d.basename} #{versions*" "}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -130,7 +130,7 @@ class ExternalPatch
|
|||||||
patch_dir = Pathname.pwd
|
patch_dir = Pathname.pwd
|
||||||
if patch_files.empty?
|
if patch_files.empty?
|
||||||
children = patch_dir.children
|
children = patch_dir.children
|
||||||
if (children.count == 1 && children.first.file?)
|
if (children.length == 1 && children.first.file?)
|
||||||
patch_files << children.first.basename
|
patch_files << children.first.basename
|
||||||
else
|
else
|
||||||
raise MissingApplyError, <<-EOS.undent
|
raise MissingApplyError, <<-EOS.undent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user