(no commit message)
authorSteven Barth <steven@midlink.org>
Sun, 6 Apr 2008 19:48:29 +0000 (19:48 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 6 Apr 2008 19:48:29 +0000 (19:48 +0000)
src/ffluci/controller/admin/system.lua
src/ffluci/model/ipkg.lua

index 864c552393f5d8a6d988cc7fff38cfa433924e48..fc31ea22b598ba90d118229110e3fb14a914d41d 100644 (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
index cbdd0f13b4b590cc332f9c3bd3ac206787b5b938..3b149fb168e5ce2401568404399eb8a9e7406fc6 100644 (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