This commit is contained in:
parent
b337ba71b1
commit
9de2f0d591
2 changed files with 2 additions and 8 deletions
|
@ -120,7 +120,7 @@ function action_packages()
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if j.Package and v.Package and j.Package > v.Package then
|
if j.Package > v.Package then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -88,13 +88,7 @@ function _lookup(act, pkg)
|
||||||
cmd = cmd .. " '" .. pkg:gsub("'", "") .. "'"
|
cmd = cmd .. " '" .. pkg:gsub("'", "") .. "'"
|
||||||
end
|
end
|
||||||
|
|
||||||
local info = _parselist(ffluci.sys.exec(cmd .. " 2>/dev/null"))
|
return _parselist(ffluci.sys.exec(cmd .. " 2>/dev/null"))
|
||||||
|
|
||||||
if pkg then
|
|
||||||
return info[pkg]
|
|
||||||
else
|
|
||||||
return info
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Internal parser function
|
-- Internal parser function
|
||||||
|
|
Loading…
Reference in a new issue