This commit is contained in:
Steven Barth 2008-04-06 19:48:29 +00:00
parent b337ba71b1
commit 9de2f0d591
2 changed files with 2 additions and 8 deletions

View file

@ -120,7 +120,7 @@ function action_packages()
break
end
else
if j.Package and v.Package and j.Package > v.Package then
if j.Package > v.Package then
break
end
end

View file

@ -88,13 +88,7 @@ function _lookup(act, pkg)
cmd = cmd .. " '" .. pkg:gsub("'", "") .. "'"
end
local info = _parselist(ffluci.sys.exec(cmd .. " 2>/dev/null"))
if pkg then
return info[pkg]
else
return info
end
return _parselist(ffluci.sys.exec(cmd .. " 2>/dev/null"))
end
-- Internal parser function