Fix to pass failing spec test.
parent
f73d593407
commit
ed922340f0
|
@ -320,9 +320,11 @@ class ClientCore < Extension
|
||||||
|
|
||||||
modnameprovided = mod
|
modnameprovided = mod
|
||||||
suffix = nil
|
suffix = nil
|
||||||
if client.binary_suffix.blank?
|
# If there is no supported suffix *or* if the one supported suffix indicates
|
||||||
|
# ELF, then allow ELF files which have no '.elf' suffix.
|
||||||
|
if client.binary_suffix.blank? || (client.binary_suffix.size == 1 && client.binary_suffix.first == 'elf')
|
||||||
suffix = ''
|
suffix = ''
|
||||||
else
|
elsif client.binary_suffix.size > 1
|
||||||
client.binary_suffix.each { |s|
|
client.binary_suffix.each { |s|
|
||||||
if (mod =~ /(.*)\.#{s}/ )
|
if (mod =~ /(.*)\.#{s}/ )
|
||||||
mod = $1
|
mod = $1
|
||||||
|
@ -330,6 +332,8 @@ class ClientCore < Extension
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
suffix = client.binary_suffix.first
|
||||||
end
|
end
|
||||||
|
|
||||||
# Query the remote instance to see if commands for the extension are
|
# Query the remote instance to see if commands for the extension are
|
||||||
|
|
Loading…
Reference in New Issue