summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/model/ipkg.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/ffluci/model/ipkg.lua')
-rw-r--r--src/ffluci/model/ipkg.lua8
1 files changed, 1 insertions, 7 deletions
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