UVL: Fixed dependency parsing
authorSteven Barth <steven@midlink.org>
Wed, 10 Sep 2008 23:16:36 +0000 (23:16 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 10 Sep 2008 23:16:36 +0000 (23:16 +0000)
libs/uvl/luasrc/uvl.lua

index 52531be..9cdb994 100644 (file)
@@ -669,7 +669,7 @@ function UVL._read_dependency( self, values, deps )
                for _, value in ipairs(values) do
                        local condition = { }
                        for val in value:gmatch("[^%s,]+") do
                for _, value in ipairs(values) do
                        local condition = { }
                        for val in value:gmatch("[^%s,]+") do
-                               local k, v = val:match("([^%s]+)%s*=*%s*([^%s]*)")
+                               local k, v = val:match("([^%s=]+)%s*=*%s*([^%s]*)")
 
                                if k and (
                                        k:match("^"..expr.."%."..expr.."%."..expr.."$") or
 
                                if k and (
                                        k:match("^"..expr.."%."..expr.."%."..expr.."$") or