summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-04-06 19:48:29 +0000
committerSteven Barth <steven@midlink.org>2008-04-06 19:48:29 +0000
commit9de2f0d5918a0fb2b6d73fb8bcf9db1c9f9cc745 (patch)
treea8b31d7e67029225b38d81589b608131667975c2 /src/ffluci
parentb337ba71b15c06b9355d63a96bca9f1ba215aa0e (diff)
Diffstat (limited to 'src/ffluci')
-rw-r--r--src/ffluci/controller/admin/system.lua2
-rw-r--r--src/ffluci/model/ipkg.lua8
2 files changed, 2 insertions, 8 deletions
diff --git a/src/ffluci/controller/admin/system.lua b/src/ffluci/controller/admin/system.lua
index 864c552393..fc31ea22b5 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 cbdd0f13b4..3b149fb168 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