From: Steven Barth Date: Sun, 6 Apr 2008 19:48:29 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 0.8.0~1152 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9de2f0d5918a0fb2b6d73fb8bcf9db1c9f9cc745;p=oweals%2Fluci.git --- diff --git a/src/ffluci/controller/admin/system.lua b/src/ffluci/controller/admin/system.lua index 864c55239..fc31ea22b 100644 --- a/src/ffluci/controller/admin/system.lua +++ b/src/ffluci/controller/admin/system.lua @@ -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 diff --git a/src/ffluci/model/ipkg.lua b/src/ffluci/model/ipkg.lua index cbdd0f13b..3b149fb16 100644 --- a/src/ffluci/model/ipkg.lua +++ b/src/ffluci/model/ipkg.lua @@ -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