Get rid of remaining "match start" component.list calls in BIOS/OpenOS, fixes #1255.

This commit is contained in:
Florian Nücke 2015-06-29 21:57:10 +02:00
parent 4cb81b32f5
commit f8b0995b07
4 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ local args, options = shell.parse(...)
local fromAddress = options.from and component.get(options.from) or filesystem.get(os.getenv("_")).address
local candidates = {}
for address in component.list("filesystem") do
for address in component.list("filesystem", true) do
local dev = component.proxy(address)
if not dev.isReadOnly() and dev.address ~= computer.tmpAddress() and dev.address ~= fromAddress then
table.insert(candidates, dev)

View File

@ -116,7 +116,7 @@ end
-------------------------------------------------------------------------------
for address in component.list('screen') do
for address in component.list('screen', true) do
if #component.invoke(address,'getKeyboards') > 0 then
component.setPrimary('screen',address)
end

View File

@ -28,8 +28,8 @@ do
function rom.inits() return ipairs(rom.invoke("list", "boot")) end
function rom.isDirectory(path) return rom.invoke("isDirectory", path) end
local screen = component.list('screen')()
for address in component.list('screen') do
local screen = component.list('screen', true)()
for address in component.list('screen', true) do
if #component.invoke(address, 'getKeyboards') > 0 then
screen = address
end

View File

@ -242,7 +242,7 @@ end
function filesystem.proxy(filter)
checkArg(1, filter, "string")
local address
for c in component.list("filesystem") do
for c in component.list("filesystem", true) do
if component.invoke(c, "getLabel") == filter then
address = c
break